Function at 0x407270
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x46ea28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49fba8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebx, ebx
push ebx
push ebx
call ebp
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
call fcn.00406e20
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x40], ebx
je 0x4072d3
mov edx, dword [esp + 0x30]
sub edx, eax
sar edx, 1
jne 0x4072dd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
push eax
push esi
call ebp
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.0044f5d0
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.0044f260
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0044eed0
sub eax, esi
sub eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0044f920
push esi
lea ecx, [esp + 0x28]
push ecx
mov bl, 2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], bl
call fcn.0044f9d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 3
call fcn.0044f740
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], bl
call fcn.0044ee30
lea ecx, [esp + 0x14]
call fcn.0044ef50
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call ebp
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
call fcn.0044ef50
push eax
push 0
call fcn.00405600
mov esi, eax
add esp, 0x10
test esi, esi
setne bl
mov byte [esp + 0x1c], bl
mov dword [esp + 0x20], esi
mov edi, dword [esp + 0x48]
push 0x40
push 1
push esi
mov ecx, edi
mov byte [esp + 0x4c], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::open_char_const___int__int_]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4073af
mov edx, dword [esp + 0x30]
sub edx, eax
sar edx, 1
jne 0x4073b9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
push eax
call ebp
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test byte [ecx + edi + 8], 6
je 0x407419
test bl, bl
je 0x4073d5
push esi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.0044ee30
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0
call fcn.0044ee30
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x40], 0xffffffff
je 0x407415
mov edx, dword [esp + 0x34]
sub edx, eax
sar edx, 1
push edx
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
xor al, al
jmp 0x407468
test bl, bl
je 0x407426
push esi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.0044ee30
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0
call fcn.0044ee30
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x40], 0xffffffff
je 0x407466
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4