Function at 0x40eed4
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.0041bdb0
push esi
lea eax, [ebp - 0x4ef]
push ebx
push eax
mov byte [ebp - 0x4f0], bl
call fcn.0041bdb0
push esi
lea eax, [ebp - 0x2ef]
push ebx
push eax
mov byte [ebp - 0x2f0], bl
call fcn.0041bdb0
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.0041bdb0
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.00418298
add esp, 0x40
call fcn.00412a35
mov dword [ebp - 0x20], eax
cmp dword [0x447fb8], ebx
je 0x40f225
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push 0x447eb8
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
cmp eax, 0xffffffff
jne 0x40f075
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 0x40f225
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x437728
push eax
mov dword [ebp - 0xc], eax
call fcn.00404bce
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40f1f3
push 0x43772c
push esi
call fcn.00404bce
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x40f0d4
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 0x40f1eb
push 0x437730
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x437744
push dword [ebp - 0xc]
call fcn.0041d25a
add esp, 0xc
test eax, eax
jne 0x40f10d
lea eax, [ebp - 0x1f0]
jmp 0x40f158
push 0x437758
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x43775c
push dword [ebp - 0xc]
call fcn.0041d25a
add esp, 0xc
test eax, eax
jne 0x40f135
lea eax, [ebp - 0xa0]
jmp 0x40f158
push 0x437760
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Arch
push dword [ebp - 0xc]
call fcn.0041d25a
add esp, 0xc
test eax, eax
jne 0x40f15f
lea eax, [ebp - 0x78]
push dword [ebp - 0x1c]
push esi
push eax
jmp 0x40f186
push 0x437770
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Version
push dword [ebp - 0xc]
call fcn.0041d25a
add esp, 0xc
test eax, eax
jne 0x40f18a
push dword [ebp - 0x1c]
push esi
push dword [ebp + 0xc]
call edi
jmp 0x40f1eb
push 0x437788
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Locale
push dword [ebp - 0xc]
call fcn.0041d25a
add esp, 0xc
test eax, eax
jne 0x40f1bb
push 3
push esi
lea eax, [ebp - 0x28]
push eax
call edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x40f1eb
push 0x437798
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Cntry
push dword [ebp - 0xc]
call fcn.0041d25a
add esp, 0xc
test eax, eax
jne 0x40f1eb
push 3
push esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
jmp 0x40f09a
push ebx
push ebx
push 1
push ebx
push 0x2800
push dword [ebp + 8]
lea eax, [ebp - 0x1f0]
push eax
call fcn.0040d630
add esp, 0x1c
test eax, eax
jns 0x40f225
push ebx
lea eax, [ebp - 0x1f0]
push eax
push str.FAILED_to_read_map.xml_File
jmp 0x40f067
push dword [ebp + 8]
call fcn.00417ddf
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x40f06e
push str.java_update_map
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40f06e
push 0x4377d4
push dword [esi + 0xc]
call fcn.00417c88
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
cmp eax, ebx
je 0x40f2a7
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40f2a7
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 0x40f27a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3f0]
push eax
call fcn.00410fe4
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x40f2bd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call edi
jmp 0x40f2bd
push 0x4377e4
lea eax, [ebp - 8]
push eax
call edi
push str.No_cntry_lookup_tag_in_map.xml
call fcn.0041866b
pop ecx
push str.DEBUG
push dword [esi + 0xc]
call fcn.00417c88
pop ecx
pop ecx
cmp eax, ebx
je 0x40f2e0
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40f2e0
push dword [eax + 4]
call fcn.0040ecab
pop ecx
mov eax, dword [ebp - 0x10]
push 0x437810
push dword [eax + 0xc]
call fcn.00417c88
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
pop ecx
test eax, eax
je 0x40f332
lea eax, [ebp - 4]
push 1
push eax
call fcn.00417e18
pop ecx
pop ecx
test eax, eax
je 0x40f332
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push 0x43781c
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push 0x437828
push dword [eax + 0xc]
call fcn.00417c88
pop ecx
pop ecx
test eax, eax
je 0x40f378
lea eax, [ebp - 4]
push 1
push eax
call fcn.00417e18
pop ecx
pop ecx
test eax, eax
je 0x40f378
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push 0x437834
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push 0x437840
push dword [eax + 0xc]
call fcn.00417c88
pop ecx
pop ecx
mov edi, eax
jmp 0x40f642
push str.mapping
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40f63f
push 0x437850
push dword [edi + 0xc]
call fcn.00417c88
push 0x437858
push dword [edi + 0xc]
mov esi, eax
call fcn.00417c88
add esp, 0x10
cmp esi, ebx
je 0x40f63f
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x40f63f
cmp eax, ebx
je 0x40f63f
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40f63f
push ebx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.0040db4e
add esp, 0x10
test eax, eax
jne 0x40f427
push ebx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0x10]
push dword [esi + 4]
call fcn.0040db4e
add esp, 0x10
test eax, eax
je 0x40f63f
cmp dword [ebp + 0x18], ebx
je 0x40f443
push str.critical
push dword [edi + 0xc]
call fcn.00417c88
pop ecx
pop ecx
test eax, eax
je 0x40f63f
push 0x437868
push dword [edi + 0xc]
call fcn.00417c88
pop ecx
pop ecx
cmp eax, ebx
je 0x40f4bd
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40f4bd
push 1
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push dword [eax + 4]
call fcn.0040db4e
add esp, 0x10
test eax, eax
je 0x40f63f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.arch
push dword [edi + 0xc]
call fcn.00417c88
pop ecx
pop ecx
cmp eax, ebx
je 0x40f4d3
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40f4d3
push ebx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push dword [eax + 4]
call fcn.0040db4e
add esp, 0x10
test eax, eax
jne 0x40f4de
jmp 0x40f63f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4373b3
lea eax, [ebp - 0x8c]
push eax
call esi
jmp 0x40f486
push 0x4373ba
lea eax, [ebp - 0x64]
push eax
call esi
push str.cntry
push dword [edi + 0xc]
call fcn.00417c88
pop ecx
pop ecx
cmp eax, ebx
je 0x40f515
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40f515
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [eax + 4]
call fcn.0040db4e
add esp, 0x10
test eax, eax
jne 0x40f520
jmp 0x40f63f
push 0x4373bb
lea eax, [ebp - 0x3c]
push eax
call esi
push str.locale
push dword [edi + 0xc]
call fcn.00417c88
pop ecx
pop ecx
cmp eax, ebx
je 0x40f556
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40f556
push ebx
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x20]
push dword [eax + 4]
call fcn.0040db4e
add esp, 0x10
test eax, eax
jne 0x40f561
jmp 0x40f63f
push 0x4373e1
lea eax, [ebp - 0x50]
push eax
call esi
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0040db25
pop ecx
pop ecx
cmp eax, ebx
jne 0x40f5d1
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0040db25
pop ecx
pop ecx
cmp eax, ebx
jne 0x40f5d1
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040db25
pop ecx
pop ecx
cmp eax, ebx
jne 0x40f5d1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040db25
pop ecx
pop ecx
cmp eax, ebx
jne 0x40f5d1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040db25
pop ecx
pop ecx
cmp eax, 2
jne 0x40f63f
xor eax, eax
mov cl, byte [ebp + eax - 0x2f0]
mov byte [ebp + eax - 0x4f0], cl
inc eax
cmp cl, bl
jne 0x40f5d8
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 0x40f5f7
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 0x40f391
push 0xff
lea eax, [ebp - 0x5ef]
push ebx
push eax
mov byte [ebp - 0x5f0], bl
call fcn.0041bdb0
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 [0x447fb8]
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.0041866b
add esp, 0x30
cmp dword [ebp - 0x24], ebx
je 0x40f6ba
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 0x40f6b0
mov eax, dword [ebp - 0x24]
jmp 0x40f070