Function at 0x410537
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 0x421b36
push dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp + 0x54], ebx
call esi
push 0x421b37
lea eax, [ebp - 0x354]
push eax
call esi
push 0x421b38
lea eax, [ebp - 4]
push eax
call esi
push 0x421b39
lea eax, [ebp - 0x40]
push eax
call esi
push 0x421b3a
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.0040c44b
add esp, 0x10
call fcn.00412469
cmp dword [0x427850], ebx
mov dword [ebp + 0x50], eax
je 0x410771
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push 0x427750
mov dword [ebp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
push ebx
jne 0x4105e5
push str.TestMode
push str.Failed_to_Open_Test_ConfigFile
push ebx
jmp 0x410761
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 0x410771
mov dword [ebp + 0x64], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x421b68
push dword [ebp + 0x64]
call fcn.0040fe4e
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x410734
push 0x421b6c
push ebx
call fcn.0040fe4e
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x58], eax
jne 0x410644
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 0x410729
push 0x421b70
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x421b84
push dword [ebp + 0x64]
call fcn.00412ef0
add esp, 0xc
test eax, eax
jne 0x410687
lea eax, [ebp - 0x154]
push dword [ebp + 0x5c]
push ebx
push eax
call edi
jmp 0x410729
push 0x421b98
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x421b9c
push dword [ebp + 0x64]
call fcn.00412ef0
add esp, 0xc
test eax, eax
jne 0x4106ac
lea eax, [ebp - 0x54]
jmp 0x41067b
push 0x421ba0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Arch
push dword [ebp + 0x64]
call fcn.00412ef0
add esp, 0xc
test eax, eax
jne 0x4106d1
lea eax, [ebp - 0x2c]
jmp 0x41067b
push 0x421bb0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Version
push dword [ebp + 0x64]
call fcn.00412ef0
add esp, 0xc
test eax, eax
jne 0x4106fa
push dword [ebp + 0x5c]
push ebx
push dword [ebp + 0x74]
jmp 0x410680
push 0x421bc8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Locale
push dword [ebp + 0x64]
call fcn.00412ef0
add esp, 0xc
test eax, eax
jne 0x410729
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 0x41060b
push 1
push 0x2800
push dword [ebp + 0x70]
lea eax, [ebp - 0x154]
push eax
call fcn.00410142
add esp, 0x10
test eax, eax
jge 0x410771
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.0041110d
mov edi, eax
test edi, edi
pop ecx
je 0x410767
push str.java_update_map
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x410767
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4109c6
push str.mapping
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x41099f
push str.version
push dword [edi + 0xc]
call fcn.00410f84
push 0x421c14
push dword [edi + 0xc]
mov ebx, eax
call fcn.00410f84
add esp, 0x10
test ebx, ebx
je 0x41099f
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x41099f
test eax, eax
je 0x41099f
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp + 0x60], eax
je 0x41099f
push 0
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 0x74]
push dword [ebx + 4]
call fcn.0040fed3
add esp, 0x10
test eax, eax
jne 0x410834
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 0x78]
push dword [ebx + 4]
call fcn.0040fed3
add esp, 0x10
test eax, eax
je 0x41099f
push 0x421c18
push dword [edi + 0xc]
call fcn.00410f84
test eax, eax
pop ecx
pop ecx
je 0x41086c
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41086c
push 1
lea ecx, [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push dword [eax + 4]
call fcn.0040fed3
add esp, 0x10
test eax, eax
jne 0x410877
jmp 0x41099f
push 0x421c1b
lea eax, [ebp + 0x24]
push eax
call esi
push str.arch
push dword [edi + 0xc]
call fcn.00410f84
test eax, eax
pop ecx
pop ecx
je 0x4108af
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4108af
push 0
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 4]
call fcn.0040fed3
add esp, 0x10
test eax, eax
jne 0x4108ba
jmp 0x41099f
push 0x421c21
lea eax, [ebp + 0x38]
push eax
call esi
push str.locale
push dword [edi + 0xc]
call fcn.00410f84
test eax, eax
pop ecx
pop ecx
je 0x4108f1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4108f1
push 0
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0x50]
push dword [eax + 4]
call fcn.0040fed3
add esp, 0x10
test eax, eax
jne 0x4108fc
jmp 0x41099f
push 0x421c2b
lea eax, [ebp + 0x10]
push eax
call esi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.0040feac
test eax, eax
pop ecx
pop ecx
jne 0x41094a
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040feac
test eax, eax
pop ecx
pop ecx
jne 0x41094a
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040feac
test eax, eax
pop ecx
pop ecx
jne 0x41094a
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040feac
pop ecx
pop ecx
cmp eax, 2
jne 0x41099f
xor eax, eax
mov cl, byte [ebp + eax - 0x254]
mov byte [ebp + eax - 0x354], cl
inc eax
test cl, cl
jne 0x410951
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 0x410970
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 0x41079d
cmp dword [ebp + 0x54], edi
je 0x4109c6
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 0x4109bc
mov eax, dword [ebp + 0x54]
jmp 0x410769