Function at 0x40fd11
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 0x4230e2
push dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp + 0x54], ebx
call esi
push 0x4230e3
lea eax, [ebp - 0x354]
push eax
call esi
push 0x4230e4
lea eax, [ebp - 4]
push eax
call esi
push 0x4230e5
lea eax, [ebp - 0x40]
push eax
call esi
push 0x4230e6
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.0040bcfc
add esp, 0x10
call fcn.00412c55
cmp dword [0x429850], ebx
mov dword [ebp + 0x50], eax
je 0x40ff4f
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push 0x429750
mov dword [ebp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
push ebx
jne 0x40fdbf
push str.TestMode
push str.Failed_to_Open_Test_ConfigFile
push ebx
jmp 0x40ff3f
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 0x40ff4f
mov dword [ebp + 0x64], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x423114
push dword [ebp + 0x64]
call fcn.00408ec9
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40ff0e
push 0x423118
push ebx
call fcn.00408ec9
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x58], eax
jne 0x40fe1e
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 0x40ff03
push 0x42311c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x423130
push dword [ebp + 0x64]
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x40fe61
lea eax, [ebp - 0x154]
push dword [ebp + 0x5c]
push ebx
push eax
call edi
jmp 0x40ff03
push 0x423144
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x423148
push dword [ebp + 0x64]
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x40fe86
lea eax, [ebp - 0x54]
jmp 0x40fe55
push 0x42314c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Arch
push dword [ebp + 0x64]
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x40feab
lea eax, [ebp - 0x2c]
jmp 0x40fe55
push 0x42315c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Version
push dword [ebp + 0x64]
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x40fed4
push dword [ebp + 0x5c]
push ebx
push dword [ebp + 0x74]
jmp 0x40fe5a
push 0x423174
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Locale
push dword [ebp + 0x64]
call fcn.00413870
add esp, 0xc
test eax, eax
jne 0x40ff03
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 0x40fde5
push 0
push 1
push 0
push 0x2800
push dword [ebp + 0x70]
lea eax, [ebp - 0x154]
push eax
call fcn.0040f797
add esp, 0x18
test eax, eax
jge 0x40ff4f
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.00411ed3
mov edi, eax
test edi, edi
pop ecx
je 0x40ff45
push str.java_update_map
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40ff45
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4101a4
push str.mapping
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x41017d
push 0x4231b8
push dword [edi + 0xc]
call fcn.00411d7f
push 0x4231c0
push dword [edi + 0xc]
mov ebx, eax
call fcn.00411d7f
add esp, 0x10
test ebx, ebx
je 0x41017d
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x41017d
test eax, eax
je 0x41017d
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp + 0x60], eax
je 0x41017d
push 0
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 0x74]
push dword [ebx + 4]
call fcn.0040edfb
add esp, 0x10
test eax, eax
jne 0x410012
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 0x78]
push dword [ebx + 4]
call fcn.0040edfb
add esp, 0x10
test eax, eax
je 0x41017d
push 0x4231c4
push dword [edi + 0xc]
call fcn.00411d7f
test eax, eax
pop ecx
pop ecx
je 0x41004a
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41004a
push 1
lea ecx, [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push dword [eax + 4]
call fcn.0040edfb
add esp, 0x10
test eax, eax
jne 0x410055
jmp 0x41017d
push 0x4231c7
lea eax, [ebp + 0x24]
push eax
call esi
push str.arch
push dword [edi + 0xc]
call fcn.00411d7f
test eax, eax
pop ecx
pop ecx
je 0x41008d
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41008d
push 0
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 4]
call fcn.0040edfb
add esp, 0x10
test eax, eax
jne 0x410098
jmp 0x41017d
push 0x4231cd
lea eax, [ebp + 0x38]
push eax
call esi
push str.locale
push dword [edi + 0xc]
call fcn.00411d7f
test eax, eax
pop ecx
pop ecx
je 0x4100cf
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4100cf
push 0
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0x50]
push dword [eax + 4]
call fcn.0040edfb
add esp, 0x10
test eax, eax
jne 0x4100da
jmp 0x41017d
push 0x4231d7
lea eax, [ebp + 0x10]
push eax
call esi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.0040edd4
test eax, eax
pop ecx
pop ecx
jne 0x410128
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040edd4
test eax, eax
pop ecx
pop ecx
jne 0x410128
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040edd4
test eax, eax
pop ecx
pop ecx
jne 0x410128
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040edd4
pop ecx
pop ecx
cmp eax, 2
jne 0x41017d
xor eax, eax
mov cl, byte [ebp + eax - 0x254]
mov byte [ebp + eax - 0x354], cl
inc eax
test cl, cl
jne 0x41012f
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 0x41014e
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 0x40ff7b
cmp dword [ebp + 0x54], edi
je 0x4101a4
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 0x41019a
mov eax, dword [ebp + 0x54]
jmp 0x40ff47