Function at 0x40e481
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.0041b010
push esi
lea eax, [ebp - 0x4ef]
push ebx
push eax
mov byte [ebp - 0x4f0], bl
call fcn.0041b010
push esi
lea eax, [ebp - 0x2ef]
push ebx
push eax
mov byte [ebp - 0x2f0], bl
call fcn.0041b010
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.0041b010
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.0041776c
add esp, 0x40
call fcn.00411f0d
mov dword [ebp - 0x20], eax
cmp dword [0x446f90], ebx
je 0x40e7d1
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 0x40e622
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 0x40e7d1
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x43607c
push eax
mov dword [ebp - 0xc], eax
call fcn.00404018
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40e7a0
push 0x436080
push esi
call fcn.00404018
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x40e681
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 0x40e798
push 0x436084
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x436098
push dword [ebp - 0xc]
call fcn.0041bfba
add esp, 0xc
test eax, eax
jne 0x40e6ba
lea eax, [ebp - 0x1f0]
jmp 0x40e705
push 0x4360ac
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4360b0
push dword [ebp - 0xc]
call fcn.0041bfba
add esp, 0xc
test eax, eax
jne 0x40e6e2
lea eax, [ebp - 0xa0]
jmp 0x40e705
push 0x4360b4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Arch
push dword [ebp - 0xc]
call fcn.0041bfba
add esp, 0xc
test eax, eax
jne 0x40e70c
lea eax, [ebp - 0x78]
push dword [ebp - 0x1c]
push esi
push eax
jmp 0x40e733
push 0x4360c4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Version
push dword [ebp - 0xc]
call fcn.0041bfba
add esp, 0xc
test eax, eax
jne 0x40e737
push dword [ebp - 0x1c]
push esi
push dword [ebp + 0xc]
call edi
jmp 0x40e798
push 0x4360dc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Locale
push dword [ebp - 0xc]
call fcn.0041bfba
add esp, 0xc
test eax, eax
jne 0x40e768
push 3
push esi
lea eax, [ebp - 0x28]
push eax
call edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x40e798
push 0x4360ec
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Cntry
push dword [ebp - 0xc]
call fcn.0041bfba
add esp, 0xc
test eax, eax
jne 0x40e798
push 3
push esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
jmp 0x40e647
push ebx
push 1
push ebx
push 0x2800
push dword [ebp + 8]
lea eax, [ebp - 0x1f0]
push eax
call fcn.0040cbe8
add esp, 0x18
test eax, eax
jns 0x40e7d1
push ebx
lea eax, [ebp - 0x1f0]
push eax
push str.FAILED_to_read_map.xml_File
jmp 0x40e614
push dword [ebp + 8]
call fcn.004172b3
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x40e61b
push str.java_update_map
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40e61b
push 0x436128
push dword [esi + 0xc]
call fcn.0041715c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
cmp eax, ebx
je 0x40e853
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40e853
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 0x40e826
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3f0]
push eax
call fcn.0041055b
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x40e869
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call edi
jmp 0x40e869
push 0x436138
lea eax, [ebp - 8]
push eax
call edi
push str.No_cntry_lookup_tag_in_map.xml
call fcn.00417b54
pop ecx
push str.DEBUG
push dword [esi + 0xc]
call fcn.0041715c
pop ecx
pop ecx
cmp eax, ebx
je 0x40e88c
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40e88c
push dword [eax + 4]
call fcn.0040e258
pop ecx
mov eax, dword [ebp - 0x10]
push 0x436164
push dword [eax + 0xc]
call fcn.0041715c
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
pop ecx
test eax, eax
je 0x40e8de
lea eax, [ebp - 4]
push 1
push eax
call fcn.004172ec
pop ecx
pop ecx
test eax, eax
je 0x40e8de
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push 0x436170
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push 0x43617c
push dword [eax + 0xc]
call fcn.0041715c
pop ecx
pop ecx
test eax, eax
je 0x40e924
lea eax, [ebp - 4]
push 1
push eax
call fcn.004172ec
pop ecx
pop ecx
test eax, eax
je 0x40e924
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push 0x436188
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push 0x436194
push dword [eax + 0xc]
call fcn.0041715c
pop ecx
pop ecx
mov edi, eax
jmp 0x40ebee
push str.mapping
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40ebeb
push 0x4361a4
push dword [edi + 0xc]
call fcn.0041715c
push 0x4361ac
push dword [edi + 0xc]
mov esi, eax
call fcn.0041715c
add esp, 0x10
cmp esi, ebx
je 0x40ebeb
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x40ebeb
cmp eax, ebx
je 0x40ebeb
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ebeb
push ebx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.0040d0fb
add esp, 0x10
test eax, eax
jne 0x40e9d3
push ebx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0x10]
push dword [esi + 4]
call fcn.0040d0fb
add esp, 0x10
test eax, eax
je 0x40ebeb
cmp dword [ebp + 0x18], ebx
je 0x40e9ef
push str.critical
push dword [edi + 0xc]
call fcn.0041715c
pop ecx
pop ecx
test eax, eax
je 0x40ebeb
push 0x4361bc
push dword [edi + 0xc]
call fcn.0041715c
pop ecx
pop ecx
cmp eax, ebx
je 0x40ea69
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ea69
push 1
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push dword [eax + 4]
call fcn.0040d0fb
add esp, 0x10
test eax, eax
je 0x40ebeb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.arch
push dword [edi + 0xc]
call fcn.0041715c
pop ecx
pop ecx
cmp eax, ebx
je 0x40ea7f
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40ea7f
push ebx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push dword [eax + 4]
call fcn.0040d0fb
add esp, 0x10
test eax, eax
jne 0x40ea8a
jmp 0x40ebeb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x435d0b
lea eax, [ebp - 0x8c]
push eax
call esi
jmp 0x40ea32
push 0x435d12
lea eax, [ebp - 0x64]
push eax
call esi
push str.cntry
push dword [edi + 0xc]
call fcn.0041715c
pop ecx
pop ecx
cmp eax, ebx
je 0x40eac1
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40eac1
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [eax + 4]
call fcn.0040d0fb
add esp, 0x10
test eax, eax
jne 0x40eacc
jmp 0x40ebeb
push 0x435d13
lea eax, [ebp - 0x3c]
push eax
call esi
push str.locale
push dword [edi + 0xc]
call fcn.0041715c
pop ecx
pop ecx
cmp eax, ebx
je 0x40eb02
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40eb02
push ebx
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x20]
push dword [eax + 4]
call fcn.0040d0fb
add esp, 0x10
test eax, eax
jne 0x40eb0d
jmp 0x40ebeb
push 0x435d39
lea eax, [ebp - 0x50]
push eax
call esi
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0040d0d2
pop ecx
pop ecx
cmp eax, ebx
jne 0x40eb7d
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0040d0d2
pop ecx
pop ecx
cmp eax, ebx
jne 0x40eb7d
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040d0d2
pop ecx
pop ecx
cmp eax, ebx
jne 0x40eb7d
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d0d2
pop ecx
pop ecx
cmp eax, ebx
jne 0x40eb7d
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040d0d2
pop ecx
pop ecx
cmp eax, 2
jne 0x40ebeb
xor eax, eax
mov cl, byte [ebp + eax - 0x2f0]
mov byte [ebp + eax - 0x4f0], cl
inc eax
cmp cl, bl
jne 0x40eb84
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 0x40eba3
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 0x40e93d
push 0xff
lea eax, [ebp - 0x5ef]
push ebx
push eax
mov byte [ebp - 0x5f0], bl
call fcn.0041b010
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.00417b54
add esp, 0x30
cmp dword [ebp - 0x24], ebx
je 0x40ec66
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 0x40ec5c
mov eax, dword [ebp - 0x24]
jmp 0x40e61d