Function at 0x456e60
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e221
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0xb
mov ebx, ecx
cmp dword [0x6573f0], esi
je 0x456eaf
mov eax, dword [0x6573d4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], esi
lea eax, [ebp - 0x568]
mov dword [ebp - method.CMHFile.virtual_0], vtable.CMHFile.0
call fcn.004061b0
xor esi, esi
xor eax, eax
push 0x104
lea ecx, [ebp - 0x66c]
push esi
push ecx
mov dword [ebp - 0x698], esi
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x67c], eax
mov word [ebp - 0x678], ax
mov dword [ebp - 0x674], esi
mov dword [ebp - 0x688], esi
mov dword [ebp - 0x670], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x690], esi
mov dword [ebp - 0x68c], esi
movzx edx, word [ebp + 8]
push edx
lea eax, [ebp - 0x54]
push str.Minimap_d.bin
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x54]
push ecx
mov ecx, 0x587394
lea edi, [ebp - 0x69c]
call fcn.00528720
mov eax, dword [ebp - 0x694]
sub eax, esi
je 0x456fc3
dec eax
je 0x456fb9
dec eax
jne 0x456f6e
push str.MHFile.cpp
xor ecx, ecx
mov edx, 0x268
call fcn.0052cb10
add esp, 4
mov dword [ebp - 0x6a0], esi
add ebx, 0x570
lea ebx, [ebx]
lea eax, [ebp - 0x154]
push eax
lea esi, [ebp - 0x69c]
call fcn.00528970
mov eax, dword [ebp - 0x694]
xor esi, esi
sub eax, esi
je 0x45700e
dec eax
jne 0x4571ba
mov ecx, dword [ebp - 0x67c]
cmp ecx, dword [ebp - 0x688]
je 0x457088
jmp 0x457026
xor eax, eax
cmp dword [ebp - 0x670], esi
jmp 0x456fcb
xor eax, eax
cmp dword [ebp - 0x698], esi
setne al
cmp eax, esi
jne 0x456f6e
cmp dword [0x6573f0], esi
je 0x456fed
mov edx, dword [0x6573a8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], esi
mov dword [ebp - method.CMHFile.virtual_0], vtable.CMHFile.0
lea esi, [ebp - 0x69c]
mov dword [ebp - 4], 1
call fcn.00528910
jmp 0x45719c
mov edx, dword [ebp - 0x698]
push edx
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
neg eax
sbb eax, eax
neg eax
jne 0x457088
push 0x69d3c8
lea esi, [ebp - 0x69c]
call fcn.00528970
mov edi, dword [sym.imp.MSVCR100.dll_atoi]
push 0x69d3c8
call edi
add esp, 4
push 0x69d3c8
mov dword [ebx - 4], eax
call fcn.00528970
push 0x69d3c8
call edi
add esp, 4
lea esi, [ebx - 0x24]
lea edi, [ebp - 0x154]
mov dword [ebx], eax
call fcn.0043f400
mov eax, dword [ebp - 0x6a0]
inc eax
add ebx, 0x28
mov dword [ebp - 0x6a0], eax
cmp eax, 2
jl 0x456f80
xor esi, esi
mov eax, dword [ebp - 0x698]
mov edi, dword [sym.imp.MSVCR100.dll_fclose]
cmp eax, esi
je 0x4570a4
push eax
call edi
add esp, 4
mov dword [ebp - 0x698], esi
mov eax, dword [ebp - 0x674]
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
cmp eax, esi
je 0x4570c0
push eax
call ebx
add esp, 4
mov dword [ebp - 0x674], esi
mov ecx, dword [ebp - 0x68c]
mov dword [ebp - 0x688], esi
mov dword [ebp - 0x670], esi
cmp ecx, esi
je 0x4570ff
mov eax, dword [ebp - 0x690]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x54]
call eax
mov eax, dword [ebp - 0x690]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x68c], esi
mov dword [ebp - 0x690], esi
cmp dword [0x6573f0], esi
je 0x457119
mov eax, dword [0x6573a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], esi
mov eax, dword [0x65fe28]
cmp eax, esi
je 0x45712c
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00454990
mov dword [ebp - method.CMHFile.virtual_0], vtable.CMHFile.0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x698]
cmp eax, esi
je 0x457153
push eax
call edi
add esp, 4
mov dword [ebp - 0x698], esi
mov eax, dword [ebp - 0x674]
cmp eax, esi
je 0x457169
push eax
call ebx
add esp, 4
mov dword [ebp - 0x674], esi
mov ecx, dword [ebp - 0x68c]
mov dword [ebp - 0x688], esi
mov dword [ebp - 0x670], esi
cmp ecx, esi
je 0x45719c
mov eax, dword [ebp - 0x690]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x54]
call eax
mov eax, dword [ebp - 0x690]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4
dec eax
jne 0x457088
push str.MHFile.cpp
xor ecx, ecx
mov edx, 0x258
call fcn.0052cb10
add esp, 4
jmp 0x457088