Function at 0x409240
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502583
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405dc0
mov ecx, eax
test ecx, ecx
je 0x409509
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00416650
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40946d
lea ecx, [ebp - 0x74]
call fcn.00418e90
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x6c], 0x6f006c
mov dword [ebp - 0x68], 0x610063
mov dword [ebp - 0x64], 0x20006c
mov dword [ebp - 0x60], 0x6f006e
mov dword [ebp - 0x5c], 0x200074
mov dword [ebp - 0x58], 0x6e0069
mov dword [ebp - 0x54], 0x740073
mov dword [ebp - 0x50], 0x6c0061
mov dword [ebp - 0x4c], 0x20006c
mov dword [ebp - 0x48], 0x6f0073
mov dword [ebp - 0x44], 0x740066
mov dword [ebp - 0x40], 0x20002c
mov dword [ebp - 0x3c], 0x6e0069
mov dword [ebp - 0x38], 0x740073
mov dword [ebp - 0x34], 0x6c0061
mov dword [ebp - 0x30], 0x20006c
mov dword [ebp - 0x2c], 0x690064
mov dword [ebp - 0x28], 0x3a0072
mov dword [ebp - 0x24], 0x20
call fcn.00405dc0
push eax
push 0x25
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404e60
sub esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c]
call fcn.0040b430
mov byte [ebp - 4], 3
mov ebx, 0x531ef4
mov esi, dword [ebp - 0x1c]
mov eax, ebx
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00409e50
test edi, edi
lea eax, [ebp - 0x10c]
cmovne ebx, edi
push ebx
push eax
call fcn.00409e50
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x10c]
add esp, 0x10
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x110], eax
lea ecx, [ebp - 0x108]
call fcn.0040c1d0
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x110], eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 4
mov dword [ebp - 0xbc], vtable.std::ios_base.0
push eax
call fcn.0041c00c
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esp, 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40943d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x409467
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x409467
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x409467
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 0x15], 0
jmp 0x4094ce
call fcn.00407430
mov esi, dword [eax + 4]
lea edx, [edi - 0x10]
sub esi, 0x10
or ebx, 0xffffffff
lea ecx, [eax + 4]
mov dword [ebp - 0x1c], ecx
cmp edx, esi
je 0x4094ca
cmp dword [esi + 0xc], 0
jl 0x4094c1
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4094c1
mov ecx, edx
call fcn.004075e0
mov dword [ebp - 0x20], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4094b7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4094ca
push dword [edi - 0xc]
push edi
call fcn.004051c0
mov byte [ebp - 0x15], 1
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4094ea
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499723
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ba0
int3