Function at 0x408e50
Capabilities:
Contain obfuscated stackstrings
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502532
mov eax, dword fs:[0]
push eax
sub esp, 0x578
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
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c5380
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x44c]
call fcn.00418e90
mov dword [ebp - 4], 0
mov edi, dword [eax]
xor eax, eax
mov dword [ebp - 0x43c], 0x6f0057
mov dword [ebp - 0x438], 0x6b0072
mov dword [ebp - 0x434], 0x610050
mov dword [ebp - 0x430], 0x680074
mov dword [ebp - 0x42c], 0x20003a
mov word [ebp - 0x428], ax
call fcn.00405dc0
push eax
push 0xa
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x424]
call fcn.00404e60
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4ec]
call fcn.0040b430
mov byte [ebp - 4], 2
mov eax, 0x531ef4
mov esi, dword [ebp - 0x424]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.00409e50
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0x4ec]
add esp, 0x10
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x4ec]
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 - 0x4ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x4f0], eax
lea ecx, [ebp - 0x4e8]
call fcn.0040c1d0
mov eax, dword [ebp - 0x4ec]
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 - 0x4ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x4f0], eax
lea eax, [ebp - 0x49c]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041c00c
add esp, 4
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408ffa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x448]
test esi, esi
je 0x40902a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40902a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x40902a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
call fcn.004c5380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004cb8f2
add esp, 8
test eax, eax
je 0x409218
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x454]
call fcn.00418e90
mov dword [ebp - 4], 5
mov edi, dword [eax]
xor eax, eax
mov dword [ebp - 0x444], 0x650073
mov dword [ebp - 0x440], 0x200074
mov dword [ebp - 0x43c], 0x6f0057
mov dword [ebp - 0x438], 0x6b0072
mov dword [ebp - 0x434], 0x610050
mov dword [ebp - 0x430], 0x680074
mov dword [ebp - 0x42c], 0x20003a
mov word [ebp - 0x428], ax
call fcn.00405dc0
push eax
push 0xe
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x424]
call fcn.00404e60
sub esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x584]
call fcn.0040b430
mov byte [ebp - 4], 7
mov eax, 0x531ef4
mov esi, dword [ebp - 0x424]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0x584]
push eax
call fcn.00409e50
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x584]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0x584]
add esp, 0x10
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0x584]
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 - 0x584]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x588], eax
lea ecx, [ebp - 0x580]
call fcn.0040c1d0
mov eax, dword [ebp - 0x584]
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 - 0x584]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x588], eax
lea eax, [ebp - 0x534]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041c00c
add esp, 4
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4091e9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 9
mov esi, dword [ebp - 0x450]
test esi, esi
je 0x409218
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x409218
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x409218
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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