Function at 0x40c851
Capabilities:
Read file on windows

Disassembly:
push 0x898
mov eax, 0x46eaf4
call fcn.004516bd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8a0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x898], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x8a4], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x88], bl
lea edi, [ebp - 0x87]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x4c], bl
lea edi, [ebp - 0x4b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0xff
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x1ef]
push ebx
push eax
mov byte [ebp - 0x1f0], bl
call fcn.0044b630
add esp, 0xc
push esi
lea eax, [ebp - 0x4ef]
push ebx
push eax
mov byte [ebp - 0x4f0], bl
call fcn.0044b630
add esp, 0xc
push esi
lea eax, [ebp - 0x2ef]
push ebx
push eax
mov byte [ebp - 0x2f0], bl
call fcn.0044b630
xor eax, eax
mov byte [ebp - 0xd8], bl
lea edi, [ebp - 0xd7]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0xb0], bl
lea edi, [ebp - 0xaf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0xc4], bl
lea edi, [ebp - 0xc3]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xec], bl
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0xeb]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x60], bl
lea edi, [ebp - 0x5f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x74], bl
lea edi, [ebp - 0x73]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x9c], bl
lea edi, [ebp - 0x9b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x5ef]
push ebx
push eax
mov dword [ebp - 0x894], ebx
mov byte [ebp - 0x5f0], bl
call fcn.0044b630
xor eax, eax
mov byte [ebp - 0x878], bl
lea edi, [ebp - 0x877]
stosw word es:[edi], ax
mov byte [ebp - 0x880], bl
lea edi, [ebp - 0x87f]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x8a4]
mov byte [eax], bl
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x89c]
push eax
mov dword [ebp - 0x868], ebx
call fcn.00422b83
pop ecx
mov ecx, eax
call fcn.0043374f
lea ecx, [ebp - 0x844]
mov dword [ebp - 4], ebx
call fcn.0042cbe4
push 0x10
pop edi
cmp dword [eax + 0x14], edi
jb 0x40c9fd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x88]
push 0x14
push eax
call fcn.00422b83
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x844]
call fcn.00403353
lea eax, [ebp - 0x844]
push eax
call fcn.00422b83
pop ecx
cmp dword [eax + 0x14], edi
jb 0x40ca31
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x4c]
push 0x14
push eax
call fcn.00422b83
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x844]
call fcn.00403353
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
cmp edx, edi
jb 0x40ca5c
mov esi, dword [eax]
jmp 0x40ca5e
mov esi, eax
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp edx, edi
jb 0x40ca69
mov eax, dword [eax]
push dword [ebp - 0x898]
mov dword [ebp - 0x890], ebx
push ecx
push eax
lea eax, [ebp - 0x890]
push eax
mov dword [ebp - 0x88c], ebx
mov dword [ebp - 0x888], ebx
call fcn.0041405a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x861]
lea esi, [ebp - 0x890]
mov byte [ebp - 0x861], bl
call fcn.0040ecb7
mov esi, dword [sym.imp.kernel32.dll_lstrlenA]
cmp dword [0x499f6c], ebx
je 0x40ce54
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push 0x499d18
mov dword [ebp - 0x89c], ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x874], eax
cmp eax, 0xffffffff
jne 0x40cb11
push ebx
push str.TestMode
push str.Failed_to_Open_Test_ConfigFile
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
cmp dword [ebp - 0x890], ebx
je 0x40d441
push dword [ebp - 0x890]
jmp 0x40d43b
mov edi, 0x200
push edi
lea eax, [ebp - 0x7f0]
push ebx
push eax
call fcn.0044b630
add esp, 0xc
push ebx
lea eax, [ebp - 0x89c]
push eax
push edi
lea eax, [ebp - 0x7f0]
push eax
push dword [ebp - 0x874]
call dword [sym.imp.kernel32.dll_ReadFile]
push dword [ebp - 0x874]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x89c], ebx
jbe 0x40ce54
mov edi, dword [sym.imp.kernel32.dll_lstrcpynA]
lea eax, [ebp - 0x7f0]
push 0x479a34
mov dword [ebp - 0x87c], eax
call fcn.0040c6d7
pop ecx
mov dword [ebp - 0x870], eax
cmp eax, ebx
je 0x40cd5c
push 0x479a38
call fcn.0040c6d7
pop ecx
mov dword [ebp - 0x874], eax
cmp eax, ebx
jne 0x40cbaf
push dword [ebp - 0x870]
call esi
add eax, dword [ebp - 0x870]
mov dword [ebp - 0x874], eax
mov eax, dword [ebp - 0x874]
sub eax, dword [ebp - 0x870]
dec eax
mov dword [ebp - 0x86c], eax
cmp eax, ebx
jle 0x40cd51
push 0x479a3c
call esi
push eax
push 0x479a3c
push dword [ebp - 0x87c]
call fcn.00422b83
add esp, 0xc
test eax, eax
jne 0x40cbf1
lea eax, [ebp - 0x1f0]
jmp 0x40cc3a
push 0x479a50
call esi
push eax
push 0x479a50
push dword [ebp - 0x87c]
call fcn.00422b83
add esp, 0xc
test eax, eax
jne 0x40cc18
lea eax, [ebp - 0x88]
jmp 0x40cc3a
push str.Arch
call esi
push eax
push str.Arch
push dword [ebp - 0x87c]
call fcn.00422b83
add esp, 0xc
test eax, eax
jne 0x40cc49
lea eax, [ebp - 0x4c]
push dword [ebp - 0x86c]
push dword [ebp - 0x870]
push eax
jmp 0x40cc7a
push str.Version
call esi
push eax
push str.Version
push dword [ebp - 0x87c]
call fcn.00422b83
add esp, 0xc
test eax, eax
jne 0x40cc81
push dword [ebp - 0x86c]
push dword [ebp - 0x870]
push dword [ebp - 0x8a0]
call edi
jmp 0x40cd51
push str.Locale
call esi
push eax
push str.Locale
push dword [ebp - 0x87c]
call fcn.00422b83
add esp, 0xc
test eax, eax
jne 0x40cd17
push 0x14
push dword [ebp - 0x870]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.kernel32.dll_lstrcpynA]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x844]
call fcn.00402573
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x860]
mov byte [ebp - 4], 2
call fcn.00422b83
pop ecx
mov esi, eax
lea edi, [ebp - 0x828]
mov byte [ebp - 4], 3
call fcn.0040319c
push ebx
push 1
lea ecx, [ebp - 0x860]
call fcn.00403353
push ebx
push 1
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 1
call fcn.00403353
mov edi, dword [sym.imp.kernel32.dll_lstrcpynA]
mov esi, dword [sym.imp.kernel32.dll_lstrlenA]
jmp 0x40cd51
push str.Cntry
call esi
push eax
push str.Cntry
push dword [ebp - 0x87c]
call fcn.00422b83
add esp, 0xc
test eax, eax
jne 0x40cd51
push 3
push dword [ebp - 0x870]
lea eax, [ebp - 0x878]
push eax
call edi
mov dword [ebp - 0x868], 1
mov eax, dword [ebp - 0x874]
jmp 0x40cb67
mov dword [ebp - 0x7f8], 0xf
mov dword [ebp - 0x7fc], ebx
mov byte [ebp - 0x80c], bl
push ebx
push ebx
push 1
lea eax, [ebp - 0x80c]
push ebx
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 4
call fcn.0040c111
add esp, 0x14
test eax, eax
jns 0x40cdbb
push ebx
lea eax, [ebp - 0x1f0]
push eax
push str.FAILED_to_read_map.xml_File
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
push ebx
push 1
lea ecx, [ebp - 0x80c]
call fcn.00403353
jmp 0x40cafa
cmp dword [ebp - 0x7f8], 0x10
mov ecx, dword [ebp - 0x80c]
mov eax, ecx
jae 0x40cdd2
lea eax, [ebp - 0x80c]
mov esi, dword [ebp - 0x7fc]
add esi, eax
cmp dword [ebp - 0x7f8], 0x10
jb 0x40cdeb
mov dword [ebp - 0x874], ecx
jmp 0x40cdf7
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x874], eax
push dword [ebp - 0x88c]
lea eax, [ebp - 0x86c]
push dword [ebp - 0x890]
lea edi, [ebp - 0x890]
push eax
call fcn.00422b83
push dword [ebp - 0x898]
mov ecx, edi
push esi
push dword [ebp - 0x874]
push dword [ebp - 0x890]
call fcn.0040fb21
lea eax, [ebp - 0x861]
mov esi, edi
mov byte [ebp - 0x861], bl
call fcn.0040ecb7
push ebx
push 1
lea ecx, [ebp - 0x80c]
mov byte [ebp - 4], 1
call fcn.00403353
mov esi, dword [ebp - 0x890]
mov dword [0x499f74], esi
call fcn.004142ee
call fcn.004143ba
mov edi, eax
cmp edi, ebx
je 0x40d436
push str.java_update_map
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_lstrcmpA]
test eax, eax
jne 0x40d436
mov eax, dword [edi + 0xc]
push str.cntry_lookup
call fcn.00414587
mov esi, dword [sym.imp.kernel32.dll_lstrcpyA]
pop ecx
cmp eax, ebx
je 0x40ceee
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ceee
push 0xffffffffffffffff
push dword [eax + 4]
lea eax, [ebp - 0x5f0]
push pe_nt_image_headers32
push eax
call fcn.00422b83
lea eax, [ebp - 0x5f0]
push eax
lea ecx, [ebp - 0x880]
call fcn.00414c63
add esp, 0x14
cmp dword [ebp - 0x868], ebx
jne 0x40cf07
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x878]
push eax
call esi
jmp 0x40cf07
push 0x479ab4
lea eax, [ebp - 0x878]
push eax
call esi
push str.No_cntry_lookup_tag_in_map.xml
call fcn.004295a9
pop ecx
mov eax, dword [edi + 0xc]
push str.DEBUG
call fcn.00414587
pop ecx
cmp eax, ebx
je 0x40cf28
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40cf28
mov ecx, dword [eax + 4]
call fcn.0040bcf6
mov eax, dword [edi + 0xc]
push str.SendUDPing
call fcn.00414587
pop ecx
test eax, eax
je 0x40cfa2
lea eax, [ebp - 0x868]
push 1
push eax
call fcn.00422b83
pop ecx
pop ecx
test eax, eax
je 0x40cfa2
mov eax, dword [ebp - 0x868]
push 1
lea esi, [ebp - 0x24]
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x7f4], ebx
mov byte [ebp - 0x7f8], bl
call fcn.00422b83
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x808], eax
push str.SendUDPing
lea eax, [ebp - 0x80c]
push eax
mov ecx, esi
call fcn.00432d36
lea esi, [ebp - 0x80c]
call fcn.00432c60
lea esi, [ebp - 0x20]
call fcn.0040aac1
mov eax, dword [edi + 0xc]
push str.SendUAPing
call fcn.00414587
pop ecx
test eax, eax
je 0x40d01c
lea eax, [ebp - 0x868]
push 1
push eax
call fcn.00422b83
pop ecx
pop ecx
test eax, eax
je 0x40d01c
mov eax, dword [ebp - 0x868]
push 1
lea esi, [ebp - 0x24]
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x7f4], ebx
mov byte [ebp - 0x7f8], bl
call fcn.00422b83
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x808], eax
push str.SendUAPing
lea eax, [ebp - 0x80c]
push eax
mov ecx, esi
call fcn.00432d36
lea esi, [ebp - 0x80c]
call fcn.00432c60
lea esi, [ebp - 0x20]
call fcn.0040aac1
mov eax, dword [edi + 0xc]
push str.mapping
call fcn.00414587
mov esi, eax
pop ecx
mov dword [ebp - 0x86c], eax
cmp esi, ebx
je 0x40d374
mov edi, dword [sym.imp.kernel32.dll_lstrlenA]
push str.mapping
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_lstrcmpA]
test eax, eax
jne 0x40d35d
mov eax, dword [esi + 0xc]
push str.version
call fcn.00414587
mov dword [ebp - 0x868], eax
mov eax, dword [esi + 0xc]
mov dword [esp], 0x479b08
call fcn.00414587
pop ecx
cmp dword [ebp - 0x868], ebx
je 0x40d35d
mov ecx, dword [ebp - 0x868]
mov esi, dword [ecx + 0xc]
cmp esi, ebx
je 0x40d35d
cmp eax, ebx
je 0x40d35d
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x868], eax
cmp eax, ebx
je 0x40d35d
mov ecx, dword [ebp - 0x8a0]
mov edx, dword [esi + 4]
lea eax, [ebp - 0x2f0]
push ebx
push eax
call fcn.00422b83
pop ecx
pop ecx
test eax, eax
jne 0x40d0eb
mov ecx, dword [ebp - 0x898]
mov edx, dword [esi + 4]
lea eax, [ebp - 0x2f0]
push ebx
push eax
call fcn.00422b83
pop ecx
pop ecx
test eax, eax
je 0x40d35d
cmp dword [ebp + 0x14], ebx
je 0x40d10c
mov eax, dword [ebp - 0x86c]
mov eax, dword [eax + 0xc]
push str.critical
call fcn.00414587
pop ecx
test eax, eax
je 0x40d35d
mov esi, dword [ebp - 0x86c]
mov eax, dword [esi + 0xc]
push 0x479b0c
call fcn.00414587
pop ecx
cmp eax, ebx
je 0x40d14a
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40d14a
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x60]
push 1
push ecx
lea ecx, [ebp - 0x88]
call fcn.00422b83
pop ecx
pop ecx
test eax, eax
jne 0x40d159
jmp 0x40d35d
push 0x475e44
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.arch
call fcn.00414587
pop ecx
cmp eax, ebx
je 0x40d18d
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40d18d
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x74]
push ebx
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00422b83
pop ecx
pop ecx
test eax, eax
jne 0x40d19c
jmp 0x40d35d
push 0x475e44
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.cntry
call fcn.00414587
pop ecx
cmp eax, ebx
je 0x40d1d6
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40d1d6
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x9c]
push ebx
push ecx
lea ecx, [ebp - 0x878]
call fcn.00422b83
pop ecx
pop ecx
test eax, eax
jne 0x40d1e8
jmp 0x40d35d
push 0x475e44
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.locale
call fcn.00414587
pop ecx
cmp eax, ebx
je 0x40d22e
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40d22e
cmp dword [ebp - 0x814], 0x10
mov ecx, dword [ebp - 0x828]
jae 0x40d216
lea ecx, [ebp - 0x828]
lea edx, [ebp - 0x38]
push ebx
push edx
mov edx, dword [eax + 4]
call fcn.00422b83
pop ecx
pop ecx
test eax, eax
jne 0x40d23d
jmp 0x40d35d
push 0x475e44
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [ebp - 0x4f0]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x2f0]
push eax
call edi
cmp esi, eax
ja 0x40d35d
jb 0x40d2c8
lea eax, [ebp - 0xd8]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call edi
cmp esi, eax
ja 0x40d35d
jb 0x40d2c8
lea eax, [ebp - 0xb0]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x74]
push eax
call edi
cmp esi, eax
ja 0x40d35d
jb 0x40d2c8
lea eax, [ebp - 0xec]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x9c]
push eax
call edi
cmp esi, eax
ja 0x40d35d
jb 0x40d2c8
lea eax, [ebp - 0xc4]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call edi
cmp esi, eax
jae 0x40d35d
push 0xffffffffffffffff
lea eax, [ebp - 0x2f0]
push eax
mov esi, pe_nt_image_headers32
lea eax, [ebp - 0x4f0]
push esi
push eax
call fcn.00422b83
mov eax, dword [ebp - 0x868]
push 0xffffffffffffffff
push dword [eax + 4]
lea eax, [ebp - 0x1f0]
push esi
push eax
call fcn.00422b83
or esi, 0xffffffff
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xd8]
push 0x14
push eax
call fcn.00422b83
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xb0]
push 0x14
push eax
call fcn.00422b83
add esp, 0x40
push esi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xec]
push 0x14
push eax
call fcn.00422b83
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc4]
push 0x14
push eax
call fcn.00422b83
add esp, 0x20
mov dword [ebp - 0x894], 1
mov eax, dword [ebp - 0x86c]
mov esi, dword [eax + 8]
mov dword [ebp - 0x86c], esi
cmp esi, ebx
jne 0x40d040
push 0xff
lea eax, [ebp - 0x3ef]
push ebx
push eax
mov byte [ebp - 0x3f0], bl
call fcn.0044b630
mov eax, dword [ebp - 0x828]
add esp, 0xc
cmp dword [ebp - 0x814], 0x10
jae 0x40d3a4
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x878]
push ecx
push eax
push dword [ebp - 0x8a0]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [0x499f6c]
lea eax, [ebp - 0x3f0]
push str.OVERRIDE_SYSTEM_VALUE_d:OS:_s_Arch:_s_Version:_s_Locale:_s_Cntry:_s_n
push 0xffffffffffffffff
push pe_nt_image_headers32
push eax
call fcn.00422b83
lea eax, [ebp - 0x3f0]
push eax
call fcn.004295a9
add esp, 0x2c
cmp dword [ebp - 0x894], ebx
je 0x40d40c
lea eax, [ebp - 0x1f0]
push eax
push 0x800
push dword [ebp - 0x8a4]
call fcn.00422b83
add esp, 0xc
cmp dword [ebp - 0x890], ebx
je 0x40d420
push dword [ebp - 0x890]
call fcn.00422b83
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00403353
mov eax, dword [ebp - 0x894]
jmp 0x40d451
cmp esi, ebx
je 0x40d441
push esi
call fcn.00422b83
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00403353
xor eax, eax
call fcn.00451740
ret