Function at 0x40f294
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x3bc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x421892
push dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp + 0x54], ebx
call esi
push 0x421893
lea eax, [ebp - 0x354]
push eax
call esi
push 0x421894
lea eax, [ebp - 4]
push eax
call esi
push 0x421895
lea eax, [ebp - 0x40]
push eax
call esi
push 0x421896
lea eax, [ebp - 0x18]
push eax
call esi
push 0x14
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push 0x14
push eax
call fcn.0040b8d7
add esp, 0x10
call fcn.00412149
cmp dword [0x428850], ebx
mov dword [ebp + 0x50], eax
je 0x40f4d0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push 0x428750
mov dword [ebp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
push ebx
jne 0x40f342
push str.TestMode
push str.Failed_to_Open_Test_ConfigFile
push ebx
jmp 0x40f4c0
mov edi, dword [ebp + 0x70]
lea ecx, [ebp + 0x60]
push ecx
push 0x200
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x60], ebx
jbe 0x40f4d0
mov dword [ebp + 0x64], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4218c4
push dword [ebp + 0x64]
call fcn.004089f9
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40f491
push 0x4218c8
push ebx
call fcn.004089f9
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x58], eax
jne 0x40f3a1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x58]
sub eax, ebx
dec eax
test eax, eax
mov dword [ebp + 0x5c], eax
jle 0x40f486
push 0x4218cc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4218e0
push dword [ebp + 0x64]
call fcn.00412be0
add esp, 0xc
test eax, eax
jne 0x40f3e4
lea eax, [ebp - 0x154]
push dword [ebp + 0x5c]
push ebx
push eax
call edi
jmp 0x40f486
push 0x4218f4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4218f8
push dword [ebp + 0x64]
call fcn.00412be0
add esp, 0xc
test eax, eax
jne 0x40f409
lea eax, [ebp - 0x54]
jmp 0x40f3d8
push 0x4218fc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Arch
push dword [ebp + 0x64]
call fcn.00412be0
add esp, 0xc
test eax, eax
jne 0x40f42e
lea eax, [ebp - 0x2c]
jmp 0x40f3d8
push 0x42190c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Version
push dword [ebp + 0x64]
call fcn.00412be0
add esp, 0xc
test eax, eax
jne 0x40f457
push dword [ebp + 0x5c]
push ebx
push dword [ebp + 0x74]
jmp 0x40f3dd
push 0x421924
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Locale
push dword [ebp + 0x64]
call fcn.00412be0
add esp, 0xc
test eax, eax
jne 0x40f486
push 3
push ebx
lea eax, [ebp + 0x4c]
push eax
call edi
lea eax, [ebp + 0x4c]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x64], eax
jmp 0x40f368
push 1
push 0
push 0x2800
push dword [ebp + 0x70]
lea eax, [ebp - 0x154]
push eax
call fcn.0040edd3
add esp, 0x14
test eax, eax
jge 0x40f4d0
push 0
lea eax, [ebp - 0x154]
push eax
push str.FAILED_to_read_map.xml_File
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret
push dword [ebp + 0x70]
call fcn.00411377
mov edi, eax
test edi, edi
pop ecx
je 0x40f4c6
push str.java_update_map
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40f4c6
mov edi, dword [edi + 0xc]
test edi, edi
je 0x40f725
push str.mapping
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40f6fe
push 0x421968
push dword [edi + 0xc]
call fcn.00411223
push 0x421970
push dword [edi + 0xc]
mov ebx, eax
call fcn.00411223
add esp, 0x10
test ebx, ebx
je 0x40f6fe
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x40f6fe
test eax, eax
je 0x40f6fe
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp + 0x60], eax
je 0x40f6fe
push 0
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 0x74]
push dword [ebx + 4]
call fcn.0040e4f5
add esp, 0x10
test eax, eax
jne 0x40f593
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 0x78]
push dword [ebx + 4]
call fcn.0040e4f5
add esp, 0x10
test eax, eax
je 0x40f6fe
push 0x421974
push dword [edi + 0xc]
call fcn.00411223
test eax, eax
pop ecx
pop ecx
je 0x40f5cb
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40f5cb
push 1
lea ecx, [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push dword [eax + 4]
call fcn.0040e4f5
add esp, 0x10
test eax, eax
jne 0x40f5d6
jmp 0x40f6fe
push 0x421977
lea eax, [ebp + 0x24]
push eax
call esi
push str.arch
push dword [edi + 0xc]
call fcn.00411223
test eax, eax
pop ecx
pop ecx
je 0x40f60e
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40f60e
push 0
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 4]
call fcn.0040e4f5
add esp, 0x10
test eax, eax
jne 0x40f619
jmp 0x40f6fe
push 0x42197d
lea eax, [ebp + 0x38]
push eax
call esi
push str.locale
push dword [edi + 0xc]
call fcn.00411223
test eax, eax
pop ecx
pop ecx
je 0x40f650
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40f650
push 0
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0x50]
push dword [eax + 4]
call fcn.0040e4f5
add esp, 0x10
test eax, eax
jne 0x40f65b
jmp 0x40f6fe
push 0x421987
lea eax, [ebp + 0x10]
push eax
call esi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.0040e4ce
test eax, eax
pop ecx
pop ecx
jne 0x40f6a9
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040e4ce
test eax, eax
pop ecx
pop ecx
jne 0x40f6a9
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040e4ce
test eax, eax
pop ecx
pop ecx
jne 0x40f6a9
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040e4ce
pop ecx
pop ecx
cmp eax, 2
jne 0x40f6fe
xor eax, eax
mov cl, byte [ebp + eax - 0x254]
mov byte [ebp + eax - 0x354], cl
inc eax
test cl, cl
jne 0x40f6b0
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x154]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40f6cf
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 4]
push eax
call esi
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
call esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call esi
mov dword [ebp + 0x54], 1
mov edi, dword [edi + 8]
test edi, edi
jne 0x40f4fc
cmp dword [ebp + 0x54], edi
je 0x40f725
mov edx, dword [ebp + 0x7c]
lea eax, [ebp - 0x154]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f71b
mov eax, dword [ebp + 0x54]
jmp 0x40f4c8