Function at 0x4086dd
Capabilities:
Read file on windows

Disassembly:
push 0x898
mov eax, 0x456182
call fcn.0043df18
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.00437840
add esp, 0xc
push esi
lea eax, [ebp - 0x4ef]
push ebx
push eax
mov byte [ebp - 0x4f0], bl
call fcn.00437840
add esp, 0xc
push esi
lea eax, [ebp - 0x2ef]
push ebx
push eax
mov byte [ebp - 0x2f0], bl
call fcn.00437840
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.00437840
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
push ecx
lea eax, [ebp - 0x89c]
push eax
mov dword [ebp - 0x868], ebx
call fcn.0041a78b
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a851
lea ecx, [ebp - 0x844]
mov dword [ebp - 4], ebx
call fcn.0041934f
push 0x10
pop edi
cmp dword [eax + 0x14], edi
jb 0x40888b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x88]
push 0x14
push eax
call fcn.0043a054
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x844]
call fcn.00405db8
lea eax, [ebp - 0x844]
push eax
call fcn.0041950c
pop ecx
cmp dword [eax + 0x14], edi
jb 0x4088bf
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x4c]
push 0x14
push eax
call fcn.0043a054
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x844]
call fcn.00405db8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
cmp edx, edi
jb 0x4088ea
mov esi, dword [eax]
jmp 0x4088ec
mov esi, eax
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp edx, edi
jb 0x4088f7
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.0040b9b4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x861]
lea esi, [ebp - 0x890]
mov byte [ebp - 0x861], bl
call fcn.0040a213
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x477474], ebx
je 0x408ce2
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push 0x477250
mov dword [ebp - 0x89c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x874], eax
cmp eax, 0xffffffff
jne 0x40899f
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 0x4092cc
push dword [ebp - 0x890]
jmp 0x4092c6
mov edi, 0x200
push edi
lea eax, [ebp - 0x7f0]
push ebx
push eax
call fcn.00437840
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 0x408ce2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x7f0]
push 0x45f570
mov dword [ebp - 0x87c], eax
call fcn.00408563
pop ecx
mov dword [ebp - 0x870], eax
cmp eax, ebx
je 0x408bea
push 0x45f574
call fcn.00408563
pop ecx
mov dword [ebp - 0x874], eax
cmp eax, ebx
jne 0x408a3d
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 0x408bdf
push 0x45f578
call esi
push eax
push 0x45f578
push dword [ebp - 0x87c]
call fcn.00439712
add esp, 0xc
test eax, eax
jne 0x408a7f
lea eax, [ebp - 0x1f0]
jmp 0x408ac8
push 0x45f58c
call esi
push eax
push 0x45f58c
push dword [ebp - 0x87c]
call fcn.00439712
add esp, 0xc
test eax, eax
jne 0x408aa6
lea eax, [ebp - 0x88]
jmp 0x408ac8
push str.Arch
call esi
push eax
push str.Arch
push dword [ebp - 0x87c]
call fcn.00439712
add esp, 0xc
test eax, eax
jne 0x408ad7
lea eax, [ebp - 0x4c]
push dword [ebp - 0x86c]
push dword [ebp - 0x870]
push eax
jmp 0x408b08
push str.Version
call esi
push eax
push str.Version
push dword [ebp - 0x87c]
call fcn.00439712
add esp, 0xc
test eax, eax
jne 0x408b0f
push dword [ebp - 0x86c]
push dword [ebp - 0x870]
push dword [ebp - 0x8a0]
call edi
jmp 0x408bdf
push str.Locale
call esi
push eax
push str.Locale
push dword [ebp - 0x87c]
call fcn.00439712
add esp, 0xc
test eax, eax
jne 0x408ba5
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.00405ba6
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x860]
mov byte [ebp - 4], 2
call fcn.004146f1
pop ecx
mov esi, eax
lea edi, [ebp - 0x828]
mov byte [ebp - 4], 3
call fcn.00405cd5
push ebx
push 1
lea ecx, [ebp - 0x860]
call fcn.00405db8
push ebx
push 1
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 1
call fcn.00405db8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x408bdf
push str.Cntry
call esi
push eax
push str.Cntry
push dword [ebp - 0x87c]
call fcn.00439712
add esp, 0xc
test eax, eax
jne 0x408bdf
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 0x4089f5
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.00407f9f
add esp, 0x14
test eax, eax
jns 0x408c49
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.00405db8
jmp 0x408988
cmp dword [ebp - 0x7f8], 0x10
mov ecx, dword [ebp - 0x80c]
mov eax, ecx
jae 0x408c60
lea eax, [ebp - 0x80c]
mov esi, dword [ebp - 0x7fc]
add esi, eax
cmp dword [ebp - 0x7f8], 0x10
jb 0x408c79
mov dword [ebp - 0x874], ecx
jmp 0x408c85
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.0040bc74
push dword [ebp - 0x898]
mov ecx, edi
push esi
push dword [ebp - 0x874]
push dword [ebp - 0x890]
call fcn.0040c04c
lea eax, [ebp - 0x861]
mov esi, edi
mov byte [ebp - 0x861], bl
call fcn.0040a213
push ebx
push 1
lea ecx, [ebp - 0x80c]
mov byte [ebp - 4], 1
call fcn.00405db8
mov esi, dword [ebp - 0x890]
mov dword [0x47747c], esi
call fcn.0040ff03
call fcn.0040ffcf
mov edi, eax
cmp edi, ebx
je 0x4092c1
push str.java_update_map
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4092c1
mov eax, dword [edi + 0xc]
push str.cntry_lookup
call fcn.0041019c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
cmp eax, ebx
je 0x408d7c
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x408d7c
push 0xffffffffffffffff
push dword [eax + 4]
lea eax, [ebp - 0x5f0]
push 0x100
push eax
call fcn.00437e18
lea eax, [ebp - 0x5f0]
push eax
lea ecx, [ebp - 0x880]
call fcn.00410788
add esp, 0x14
cmp dword [ebp - 0x868], ebx
jne 0x408d95
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x878]
push eax
call esi
jmp 0x408d95
push 0x45f5f0
lea eax, [ebp - 0x878]
push eax
call esi
push str.No_cntry_lookup_tag_in_map.xml
call fcn.004154f0
pop ecx
mov eax, dword [edi + 0xc]
push str.DEBUG
call fcn.0041019c
pop ecx
cmp eax, ebx
je 0x408db6
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x408db6
mov ecx, dword [eax + 4]
call fcn.00407b26
mov eax, dword [edi + 0xc]
push str.SendUDPing
call fcn.0041019c
pop ecx
test eax, eax
je 0x408e30
lea eax, [ebp - 0x868]
push 1
push eax
call fcn.0040c684
pop ecx
pop ecx
test eax, eax
je 0x408e30
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.00407902
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x808], eax
push str.SendUDPing
lea eax, [ebp - 0x80c]
push eax
mov ecx, esi
call fcn.00412797
lea esi, [ebp - 0x80c]
call fcn.004126f4
lea esi, [ebp - 0x20]
call fcn.0041ad21
mov eax, dword [edi + 0xc]
push str.SendUAPing
call fcn.0041019c
pop ecx
test eax, eax
je 0x408eaa
lea eax, [ebp - 0x868]
push 1
push eax
call fcn.0040c684
pop ecx
pop ecx
test eax, eax
je 0x408eaa
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.00407902
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x808], eax
push str.SendUAPing
lea eax, [ebp - 0x80c]
push eax
mov ecx, esi
call fcn.00412797
lea esi, [ebp - 0x80c]
call fcn.004126f4
lea esi, [ebp - 0x20]
call fcn.0041ad21
mov eax, dword [edi + 0xc]
push str.mapping
call fcn.0041019c
mov esi, eax
pop ecx
mov dword [ebp - 0x86c], eax
cmp esi, ebx
je 0x409202
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 0x4091eb
mov eax, dword [esi + 0xc]
push str.version
call fcn.0041019c
mov dword [ebp - 0x868], eax
mov eax, dword [esi + 0xc]
mov dword [esp], 0x45f644
call fcn.0041019c
pop ecx
cmp dword [ebp - 0x868], ebx
je 0x4091eb
mov ecx, dword [ebp - 0x868]
mov esi, dword [ecx + 0xc]
cmp esi, ebx
je 0x4091eb
cmp eax, ebx
je 0x4091eb
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x868], eax
cmp eax, ebx
je 0x4091eb
mov ecx, dword [ebp - 0x8a0]
mov edx, dword [esi + 4]
lea eax, [ebp - 0x2f0]
push ebx
push eax
call fcn.004085a0
pop ecx
pop ecx
test eax, eax
jne 0x408f79
mov ecx, dword [ebp - 0x898]
mov edx, dword [esi + 4]
lea eax, [ebp - 0x2f0]
push ebx
push eax
call fcn.004085a0
pop ecx
pop ecx
test eax, eax
je 0x4091eb
cmp dword [ebp + 0x14], ebx
je 0x408f9a
mov eax, dword [ebp - 0x86c]
mov eax, dword [eax + 0xc]
push str.critical
call fcn.0041019c
pop ecx
test eax, eax
je 0x4091eb
mov esi, dword [ebp - 0x86c]
mov eax, dword [esi + 0xc]
push 0x45f654
call fcn.0041019c
pop ecx
cmp eax, ebx
je 0x408fd8
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x408fd8
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x60]
push 1
push ecx
lea ecx, [ebp - 0x88]
call fcn.004085a0
pop ecx
pop ecx
test eax, eax
jne 0x408fe7
jmp 0x4091eb
push 0x45e50e
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.arch
call fcn.0041019c
pop ecx
cmp eax, ebx
je 0x40901b
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40901b
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x74]
push ebx
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004085a0
pop ecx
pop ecx
test eax, eax
jne 0x40902a
jmp 0x4091eb
push 0x45e50e
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.cntry
call fcn.0041019c
pop ecx
cmp eax, ebx
je 0x409064
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x409064
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x9c]
push ebx
push ecx
lea ecx, [ebp - 0x878]
call fcn.004085a0
pop ecx
pop ecx
test eax, eax
jne 0x409076
jmp 0x4091eb
push 0x45e50e
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.locale
call fcn.0041019c
pop ecx
cmp eax, ebx
je 0x4090bc
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x4090bc
cmp dword [ebp - 0x814], 0x10
mov ecx, dword [ebp - 0x828]
jae 0x4090a4
lea ecx, [ebp - 0x828]
lea edx, [ebp - 0x38]
push ebx
push edx
mov edx, dword [eax + 4]
call fcn.004085a0
pop ecx
pop ecx
test eax, eax
jne 0x4090cb
jmp 0x4091eb
push 0x45e50e
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 0x4091eb
jb 0x409156
lea eax, [ebp - 0xd8]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call edi
cmp esi, eax
ja 0x4091eb
jb 0x409156
lea eax, [ebp - 0xb0]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x74]
push eax
call edi
cmp esi, eax
ja 0x4091eb
jb 0x409156
lea eax, [ebp - 0xec]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x9c]
push eax
call edi
cmp esi, eax
ja 0x4091eb
jb 0x409156
lea eax, [ebp - 0xc4]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call edi
cmp esi, eax
jae 0x4091eb
push 0xffffffffffffffff
lea eax, [ebp - 0x2f0]
push eax
mov esi, 0x100
lea eax, [ebp - 0x4f0]
push esi
push eax
call fcn.00437e18
mov eax, dword [ebp - 0x868]
push 0xffffffffffffffff
push dword [eax + 4]
lea eax, [ebp - 0x1f0]
push esi
push eax
call fcn.00437e18
or esi, 0xffffffff
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xd8]
push 0x14
push eax
call fcn.00437e18
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xb0]
push 0x14
push eax
call fcn.00437e18
add esp, 0x40
push esi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xec]
push 0x14
push eax
call fcn.00437e18
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc4]
push 0x14
push eax
call fcn.00437e18
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 0x408ece
push 0xff
lea eax, [ebp - 0x3ef]
push ebx
push eax
mov byte [ebp - 0x3f0], bl
call fcn.00437840
mov eax, dword [ebp - 0x828]
add esp, 0xc
cmp dword [ebp - 0x814], 0x10
jae 0x409232
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 [0x477474]
mov esi, 0x100
push str.OVERRIDE_SYSTEM_VALUE_d:OS:_s_Arch:_s_Version:_s_Locale:_s_Cntry:_s_n
push 0xffffffffffffffff
lea eax, [ebp - 0x3f0]
push esi
push eax
call fcn.00436803
lea eax, [ebp - 0x3f0]
push eax
call fcn.004154f0
add esp, 0x2c
cmp dword [ebp - 0x894], ebx
je 0x409297
lea eax, [ebp - 0x1f0]
push eax
push esi
push dword [ebp - 0x8a4]
call fcn.0043a054
add esp, 0xc
cmp dword [ebp - 0x890], ebx
je 0x4092ab
push dword [ebp - 0x890]
call fcn.004363e2
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00405db8
mov eax, dword [ebp - 0x894]
jmp 0x4092dc
cmp esi, ebx
je 0x4092cc
push esi
call fcn.004363e2
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00405db8
xor eax, eax
call fcn.0043df9b
ret