Function at 0x4086d1
Capabilities:
Read file on windows

Disassembly:
push 0x898
mov eax, 0x4546fe
call fcn.0043c7da
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.004360a0
add esp, 0xc
push esi
lea eax, [ebp - 0x4ef]
push ebx
push eax
mov byte [ebp - 0x4f0], bl
call fcn.004360a0
add esp, 0xc
push esi
lea eax, [ebp - 0x2ef]
push ebx
push eax
mov byte [ebp - 0x2f0], bl
call fcn.004360a0
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.004360a0
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.0041a4eb
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a5b1
lea ecx, [ebp - 0x844]
mov dword [ebp - 4], ebx
call fcn.00419369
push 0x10
pop edi
cmp dword [eax + 0x14], edi
jb 0x40887f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x88]
push 0x14
push eax
call fcn.004388b4
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x844]
call fcn.00405e00
lea eax, [ebp - 0x844]
push eax
call fcn.00419526
pop ecx
cmp dword [eax + 0x14], edi
jb 0x4088b3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x4c]
push 0x14
push eax
call fcn.004388b4
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x844]
call fcn.00405e00
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
cmp edx, edi
jb 0x4088de
mov esi, dword [eax]
jmp 0x4088e0
mov esi, eax
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp edx, edi
jb 0x4088eb
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.0040fc91
mov byte [ebp - 4], 1
lea eax, [ebp - 0x861]
lea esi, [ebp - 0x890]
mov byte [ebp - 0x861], bl
call fcn.0040a801
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x4752b4], ebx
je 0x408cd6
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push 0x475090
mov dword [ebp - 0x89c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x874], eax
cmp eax, 0xffffffff
jne 0x408993
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 0x4092c0
push dword [ebp - 0x890]
jmp 0x4092ba
mov edi, 0x200
push edi
lea eax, [ebp - 0x7f0]
push ebx
push eax
call fcn.004360a0
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 0x408cd6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x7f0]
push 0x45e4c8
mov dword [ebp - 0x87c], eax
call fcn.00408557
pop ecx
mov dword [ebp - 0x870], eax
cmp eax, ebx
je 0x408bde
push 0x45e4cc
call fcn.00408557
pop ecx
mov dword [ebp - 0x874], eax
cmp eax, ebx
jne 0x408a31
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 0x408bd3
push 0x45e4d0
call esi
push eax
push 0x45e4d0
push dword [ebp - 0x87c]
call fcn.00437f72
add esp, 0xc
test eax, eax
jne 0x408a73
lea eax, [ebp - 0x1f0]
jmp 0x408abc
push 0x45e4e4
call esi
push eax
push 0x45e4e4
push dword [ebp - 0x87c]
call fcn.00437f72
add esp, 0xc
test eax, eax
jne 0x408a9a
lea eax, [ebp - 0x88]
jmp 0x408abc
push str.Arch
call esi
push eax
push str.Arch
push dword [ebp - 0x87c]
call fcn.00437f72
add esp, 0xc
test eax, eax
jne 0x408acb
lea eax, [ebp - 0x4c]
push dword [ebp - 0x86c]
push dword [ebp - 0x870]
push eax
jmp 0x408afc
push str.Version
call esi
push eax
push str.Version
push dword [ebp - 0x87c]
call fcn.00437f72
add esp, 0xc
test eax, eax
jne 0x408b03
push dword [ebp - 0x86c]
push dword [ebp - 0x870]
push dword [ebp - 0x8a0]
call edi
jmp 0x408bd3
push str.Locale
call esi
push eax
push str.Locale
push dword [ebp - 0x87c]
call fcn.00437f72
add esp, 0xc
test eax, eax
jne 0x408b99
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.00405b78
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x860]
mov byte [ebp - 4], 2
call fcn.00414901
pop ecx
mov esi, eax
lea edi, [ebp - 0x828]
mov byte [ebp - 4], 3
call fcn.00405ca7
push ebx
push 1
lea ecx, [ebp - 0x860]
call fcn.00405e00
push ebx
push 1
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 1
call fcn.00405e00
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x408bd3
push str.Cntry
call esi
push eax
push str.Cntry
push dword [ebp - 0x87c]
call fcn.00437f72
add esp, 0xc
test eax, eax
jne 0x408bd3
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 0x4089e9
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.00407f93
add esp, 0x14
test eax, eax
jns 0x408c3d
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.00405e00
jmp 0x40897c
cmp dword [ebp - 0x7f8], 0x10
mov ecx, dword [ebp - 0x80c]
mov eax, ecx
jae 0x408c54
lea eax, [ebp - 0x80c]
mov esi, dword [ebp - 0x7fc]
add esi, eax
cmp dword [ebp - 0x7f8], 0x10
jb 0x408c6d
mov dword [ebp - 0x874], ecx
jmp 0x408c79
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.0040bc93
push dword [ebp - 0x898]
mov ecx, edi
push esi
push dword [ebp - 0x874]
push dword [ebp - 0x890]
call fcn.0040c04b
lea eax, [ebp - 0x861]
mov esi, edi
mov byte [ebp - 0x861], bl
call fcn.0040a801
push ebx
push 1
lea ecx, [ebp - 0x80c]
mov byte [ebp - 4], 1
call fcn.00405e00
mov esi, dword [ebp - 0x890]
mov dword [0x4752bc], esi
call fcn.0040ff25
call fcn.0040fff1
mov edi, eax
cmp edi, ebx
je 0x4092b5
push str.java_update_map
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4092b5
mov eax, dword [edi + 0xc]
push str.cntry_lookup
call fcn.004101be
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
cmp eax, ebx
je 0x408d70
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x408d70
push 0xffffffffffffffff
push dword [eax + 4]
lea eax, [ebp - 0x5f0]
push pe_nt_image_headers32
push eax
call fcn.00436678
lea eax, [ebp - 0x5f0]
push eax
lea ecx, [ebp - 0x880]
call fcn.004107aa
add esp, 0x14
cmp dword [ebp - 0x868], ebx
jne 0x408d89
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x878]
push eax
call esi
jmp 0x408d89
push 0x45e548
lea eax, [ebp - 0x878]
push eax
call esi
push str.No_cntry_lookup_tag_in_map.xml
call fcn.004154d3
pop ecx
mov eax, dword [edi + 0xc]
push str.DEBUG
call fcn.004101be
pop ecx
cmp eax, ebx
je 0x408daa
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x408daa
mov ecx, dword [eax + 4]
call fcn.00407b1a
mov eax, dword [edi + 0xc]
push str.SendUDPing
call fcn.004101be
pop ecx
test eax, eax
je 0x408e24
lea eax, [ebp - 0x868]
push 1
push eax
call fcn.0040c683
pop ecx
pop ecx
test eax, eax
je 0x408e24
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.00407947
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x808], eax
push str.SendUDPing
lea eax, [ebp - 0x80c]
push eax
mov ecx, esi
call fcn.004127b9
lea esi, [ebp - 0x80c]
call fcn.00412716
lea esi, [ebp - 0x20]
call fcn.0042595c
mov eax, dword [edi + 0xc]
push str.SendUAPing
call fcn.004101be
pop ecx
test eax, eax
je 0x408e9e
lea eax, [ebp - 0x868]
push 1
push eax
call fcn.0040c683
pop ecx
pop ecx
test eax, eax
je 0x408e9e
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.00407947
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x808], eax
push str.SendUAPing
lea eax, [ebp - 0x80c]
push eax
mov ecx, esi
call fcn.004127b9
lea esi, [ebp - 0x80c]
call fcn.00412716
lea esi, [ebp - 0x20]
call fcn.0042595c
mov eax, dword [edi + 0xc]
push str.mapping
call fcn.004101be
mov esi, eax
pop ecx
mov dword [ebp - 0x86c], eax
cmp esi, ebx
je 0x4091f6
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 0x4091df
mov eax, dword [esi + 0xc]
push str.version
call fcn.004101be
mov dword [ebp - 0x868], eax
mov eax, dword [esi + 0xc]
mov dword [esp], 0x45e59c
call fcn.004101be
pop ecx
cmp dword [ebp - 0x868], ebx
je 0x4091df
mov ecx, dword [ebp - 0x868]
mov esi, dword [ecx + 0xc]
cmp esi, ebx
je 0x4091df
cmp eax, ebx
je 0x4091df
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x868], eax
cmp eax, ebx
je 0x4091df
mov ecx, dword [ebp - 0x8a0]
mov edx, dword [esi + 4]
lea eax, [ebp - 0x2f0]
push ebx
push eax
call fcn.00408594
pop ecx
pop ecx
test eax, eax
jne 0x408f6d
mov ecx, dword [ebp - 0x898]
mov edx, dword [esi + 4]
lea eax, [ebp - 0x2f0]
push ebx
push eax
call fcn.00408594
pop ecx
pop ecx
test eax, eax
je 0x4091df
cmp dword [ebp + 0x14], ebx
je 0x408f8e
mov eax, dword [ebp - 0x86c]
mov eax, dword [eax + 0xc]
push str.critical
call fcn.004101be
pop ecx
test eax, eax
je 0x4091df
mov esi, dword [ebp - 0x86c]
mov eax, dword [esi + 0xc]
push 0x45e5ac
call fcn.004101be
pop ecx
cmp eax, ebx
je 0x408fcc
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x408fcc
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x60]
push 1
push ecx
lea ecx, [ebp - 0x88]
call fcn.00408594
pop ecx
pop ecx
test eax, eax
jne 0x408fdb
jmp 0x4091df
push 0x45d48e
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.arch
call fcn.004101be
pop ecx
cmp eax, ebx
je 0x40900f
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40900f
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x74]
push ebx
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00408594
pop ecx
pop ecx
test eax, eax
jne 0x40901e
jmp 0x4091df
push 0x45d48e
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.cntry
call fcn.004101be
pop ecx
cmp eax, ebx
je 0x409058
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x409058
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x9c]
push ebx
push ecx
lea ecx, [ebp - 0x878]
call fcn.00408594
pop ecx
pop ecx
test eax, eax
jne 0x40906a
jmp 0x4091df
push 0x45d48e
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0xc]
push str.locale
call fcn.004101be
pop ecx
cmp eax, ebx
je 0x4090b0
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x4090b0
cmp dword [ebp - 0x814], 0x10
mov ecx, dword [ebp - 0x828]
jae 0x409098
lea ecx, [ebp - 0x828]
lea edx, [ebp - 0x38]
push ebx
push edx
mov edx, dword [eax + 4]
call fcn.00408594
pop ecx
pop ecx
test eax, eax
jne 0x4090bf
jmp 0x4091df
push 0x45d48e
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 0x4091df
jb 0x40914a
lea eax, [ebp - 0xd8]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call edi
cmp esi, eax
ja 0x4091df
jb 0x40914a
lea eax, [ebp - 0xb0]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x74]
push eax
call edi
cmp esi, eax
ja 0x4091df
jb 0x40914a
lea eax, [ebp - 0xec]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x9c]
push eax
call edi
cmp esi, eax
ja 0x4091df
jb 0x40914a
lea eax, [ebp - 0xc4]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call edi
cmp esi, eax
jae 0x4091df
push 0xffffffffffffffff
lea eax, [ebp - 0x2f0]
push eax
mov esi, pe_nt_image_headers32
lea eax, [ebp - 0x4f0]
push esi
push eax
call fcn.00436678
mov eax, dword [ebp - 0x868]
push 0xffffffffffffffff
push dword [eax + 4]
lea eax, [ebp - 0x1f0]
push esi
push eax
call fcn.00436678
or esi, 0xffffffff
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xd8]
push 0x14
push eax
call fcn.00436678
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xb0]
push 0x14
push eax
call fcn.00436678
add esp, 0x40
push esi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xec]
push 0x14
push eax
call fcn.00436678
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc4]
push 0x14
push eax
call fcn.00436678
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 0x408ec2
push 0xff
lea eax, [ebp - 0x3ef]
push ebx
push eax
mov byte [ebp - 0x3f0], bl
call fcn.004360a0
mov eax, dword [ebp - 0x828]
add esp, 0xc
cmp dword [ebp - 0x814], 0x10
jae 0x409226
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 [0x4752b4]
mov esi, pe_nt_image_headers32
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.00435063
lea eax, [ebp - 0x3f0]
push eax
call fcn.004154d3
add esp, 0x2c
cmp dword [ebp - 0x894], ebx
je 0x40928b
lea eax, [ebp - 0x1f0]
push eax
push esi
push dword [ebp - 0x8a4]
call fcn.004388b4
add esp, 0xc
cmp dword [ebp - 0x890], ebx
je 0x40929f
push dword [ebp - 0x890]
call fcn.00434c43
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00405e00
mov eax, dword [ebp - 0x894]
jmp 0x4092d0
cmp esi, ebx
je 0x4092c0
push esi
call fcn.00434c43
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00405e00
xor eax, eax
call fcn.0043c85d
ret