Function at 0x40e6a0
Capabilities:
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
xor eax, eax
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0xa0], bl
lea edi, [ebp - 0x9f]
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 - 0x78], bl
lea edi, [ebp - 0x77]
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.0041b5c0
push esi
lea eax, [ebp - 0x4ef]
push ebx
push eax
mov byte [ebp - 0x4f0], bl
call fcn.0041b5c0
push esi
lea eax, [ebp - 0x2ef]
push ebx
push eax
mov byte [ebp - 0x2f0], bl
call fcn.0041b5c0
xor eax, eax
mov byte [ebp - 0xdc], bl
lea edi, [ebp - 0xdb]
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 - 0xb4], bl
lea edi, [ebp - 0xb3]
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 - 0xf0], bl
lea edi, [ebp - 0xef]
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 - 0xc8], bl
lea edi, [ebp - 0xc7]
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
lea edi, [ebp - 0x8b]
mov byte [ebp - 0x8c], bl
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 - 0x64], bl
lea edi, [ebp - 0x63]
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 - 0x50], bl
lea edi, [ebp - 0x4f]
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 - 0x3c], bl
lea edi, [ebp - 0x3b]
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 - 0x3ef]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x3f0], bl
call fcn.0041b5c0
xor eax, eax
mov byte [ebp - 8], bl
lea edi, [ebp - 7]
stosw word es:[edi], ax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push 0x14
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xa0]
push 0x14
push eax
mov dword [ebp - 4], ebx
call fcn.004179be
add esp, 0x40
call fcn.0041215f
mov dword [ebp - 0x20], eax
cmp dword [0x446f90], ebx
je 0x40e9f0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push 0x446e90
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
cmp eax, 0xffffffff
jne 0x40e841
push str.TestMode
push str.Failed_to_Open_Test_ConfigFile
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp - 0x14]
push ecx
push 0x200
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x14], ebx
jbe 0x40e9f0
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4361c0
push eax
mov dword [ebp - 0xc], eax
call fcn.004041b8
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40e9bf
push 0x4361c4
push esi
call fcn.004041b8
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x40e8a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, esi
dec eax
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jle 0x40e9b7
push 0x4361c8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4361dc
push dword [ebp - 0xc]
call fcn.0041c5aa
add esp, 0xc
test eax, eax
jne 0x40e8d9
lea eax, [ebp - 0x1f0]
jmp 0x40e924
push 0x4361f0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4361f4
push dword [ebp - 0xc]
call fcn.0041c5aa
add esp, 0xc
test eax, eax
jne 0x40e901
lea eax, [ebp - 0xa0]
jmp 0x40e924
push 0x4361f8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Arch
push dword [ebp - 0xc]
call fcn.0041c5aa
add esp, 0xc
test eax, eax
jne 0x40e92b
lea eax, [ebp - 0x78]
push dword [ebp - 0x1c]
push esi
push eax
jmp 0x40e952
push 0x436208
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Version
push dword [ebp - 0xc]
call fcn.0041c5aa
add esp, 0xc
test eax, eax
jne 0x40e956
push dword [ebp - 0x1c]
push esi
push dword [ebp + 0xc]
call edi
jmp 0x40e9b7
push 0x436220
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Locale
push dword [ebp - 0xc]
call fcn.0041c5aa
add esp, 0xc
test eax, eax
jne 0x40e987
push 3
push esi
lea eax, [ebp - 0x28]
push eax
call edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x40e9b7
push 0x436230
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Cntry
push dword [ebp - 0xc]
call fcn.0041c5aa
add esp, 0xc
test eax, eax
jne 0x40e9b7
push 3
push esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
jmp 0x40e866
push ebx
push 1
push ebx
push 0x2800
push dword [ebp + 8]
lea eax, [ebp - 0x1f0]
push eax
call fcn.0040cdff
add esp, 0x18
test eax, eax
jns 0x40e9f0
push ebx
lea eax, [ebp - 0x1f0]
push eax
push str.FAILED_to_read_map.xml_File
jmp 0x40e833
push dword [ebp + 8]
call fcn.00417505
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x40e83a
push str.java_update_map
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40e83a
push 0x43626c
push dword [esi + 0xc]
call fcn.004173ae
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
cmp eax, ebx
je 0x40ea72
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ea72
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x3f0]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x40ea45
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3f0]
push eax
call fcn.004107ad
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x40ea88
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call edi
jmp 0x40ea88
push 0x43627c
lea eax, [ebp - 8]
push eax
call edi
push str.No_cntry_lookup_tag_in_map.xml
call fcn.00417d91
pop ecx
push str.DEBUG
push dword [esi + 0xc]
call fcn.004173ae
pop ecx
pop ecx
cmp eax, ebx
je 0x40eaab
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40eaab
push dword [eax + 4]
call fcn.0040e477
pop ecx
mov eax, dword [ebp - 0x10]
push 0x4362a8
push dword [eax + 0xc]
call fcn.004173ae
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
pop ecx
test eax, eax
je 0x40eafd
lea eax, [ebp - 4]
push 1
push eax
call fcn.0041753e
pop ecx
pop ecx
test eax, eax
je 0x40eafd
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push 0x4362b4
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push 0x4362c0
push dword [eax + 0xc]
call fcn.004173ae
pop ecx
pop ecx
test eax, eax
je 0x40eb43
lea eax, [ebp - 4]
push 1
push eax
call fcn.0041753e
pop ecx
pop ecx
test eax, eax
je 0x40eb43
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push 0x4362cc
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push 0x4362d8
push dword [eax + 0xc]
call fcn.004173ae
pop ecx
pop ecx
mov edi, eax
jmp 0x40ee0d
push str.mapping
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40ee0a
push 0x4362e8
push dword [edi + 0xc]
call fcn.004173ae
push 0x4362f0
push dword [edi + 0xc]
mov esi, eax
call fcn.004173ae
add esp, 0x10
cmp esi, ebx
je 0x40ee0a
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x40ee0a
cmp eax, ebx
je 0x40ee0a
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ee0a
push ebx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.0040d31a
add esp, 0x10
test eax, eax
jne 0x40ebf2
push ebx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0x10]
push dword [esi + 4]
call fcn.0040d31a
add esp, 0x10
test eax, eax
je 0x40ee0a
cmp dword [ebp + 0x18], ebx
je 0x40ec0e
push str.critical
push dword [edi + 0xc]
call fcn.004173ae
pop ecx
pop ecx
test eax, eax
je 0x40ee0a
push 0x436300
push dword [edi + 0xc]
call fcn.004173ae
pop ecx
pop ecx
cmp eax, ebx
je 0x40ec88
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ec88
push 1
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push dword [eax + 4]
call fcn.0040d31a
add esp, 0x10
test eax, eax
je 0x40ee0a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.arch
push dword [edi + 0xc]
call fcn.004173ae
pop ecx
pop ecx
cmp eax, ebx
je 0x40ec9e
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ec9e
push ebx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push dword [eax + 4]
call fcn.0040d31a
add esp, 0x10
test eax, eax
jne 0x40eca9
jmp 0x40ee0a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x435e4b
lea eax, [ebp - 0x8c]
push eax
call esi
jmp 0x40ec51
push 0x435e52
lea eax, [ebp - 0x64]
push eax
call esi
push str.cntry
push dword [edi + 0xc]
call fcn.004173ae
pop ecx
pop ecx
cmp eax, ebx
je 0x40ece0
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ece0
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [eax + 4]
call fcn.0040d31a
add esp, 0x10
test eax, eax
jne 0x40eceb
jmp 0x40ee0a
push 0x435e53
lea eax, [ebp - 0x3c]
push eax
call esi
push str.locale
push dword [edi + 0xc]
call fcn.004173ae
pop ecx
pop ecx
cmp eax, ebx
je 0x40ed21
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ed21
push ebx
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x20]
push dword [eax + 4]
call fcn.0040d31a
add esp, 0x10
test eax, eax
jne 0x40ed2c
jmp 0x40ee0a
push 0x435e79
lea eax, [ebp - 0x50]
push eax
call esi
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0040d2f1
pop ecx
pop ecx
cmp eax, ebx
jne 0x40ed9c
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0040d2f1
pop ecx
pop ecx
cmp eax, ebx
jne 0x40ed9c
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040d2f1
pop ecx
pop ecx
cmp eax, ebx
jne 0x40ed9c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d2f1
pop ecx
pop ecx
cmp eax, ebx
jne 0x40ed9c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040d2f1
pop ecx
pop ecx
cmp eax, 2
jne 0x40ee0a
xor eax, eax
mov cl, byte [ebp + eax - 0x2f0]
mov byte [ebp + eax - 0x4f0], cl
inc eax
cmp cl, bl
jne 0x40eda3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x1f0]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x40edc2
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xdc]
push eax
call esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb4]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc8]
push eax
call esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xf0]
push eax
call esi
mov dword [ebp - 0x24], 1
mov edi, dword [edi + 8]
cmp edi, ebx
jne 0x40eb5c
push 0xff
lea eax, [ebp - 0x5ef]
push ebx
push eax
mov byte [ebp - 0x5f0], bl
call fcn.0041b5c0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x78]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xa0]
push eax
push dword [0x446f90]
lea eax, [ebp - 0x5f0]
push str.OVERRIDE_SYSTEM_VALUE_d:OS:_s_Arch:_s_Version:_s_Locale:_s_Cntry:_s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x5f0]
push eax
call fcn.00417d91
add esp, 0x30
cmp dword [ebp - 0x24], ebx
je 0x40ee85
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x1f0]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40ee7b
mov eax, dword [ebp - 0x24]
jmp 0x40e83c