Function at 0x40d65e
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.00412420
push esi
lea eax, [ebp - 0x4ef]
push ebx
push eax
mov byte [ebp - 0x4f0], bl
call fcn.00412420
push esi
lea eax, [ebp - 0x2ef]
push ebx
push eax
mov byte [ebp - 0x2f0], bl
call fcn.00412420
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.00412420
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.0040f7b7
add esp, 0x40
call fcn.00406a37
mov dword [ebp - 0x20], eax
cmp dword [0x43b3e8], ebx
je 0x40d9ae
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push 0x43b2e8
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
cmp eax, 0xffffffff
jne 0x40d7ff
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 0x40d9ae
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x42f604
push eax
mov dword [ebp - 0xc], eax
call fcn.0040d1c5
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40d97d
push 0x42f608
push esi
call fcn.0040d1c5
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x40d85e
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 0x40d975
push 0x42f60c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x42f620
push dword [ebp - 0xc]
call fcn.004154ff
add esp, 0xc
test eax, eax
jne 0x40d897
lea eax, [ebp - 0x1f0]
jmp 0x40d8e2
push 0x42f634
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x42f638
push dword [ebp - 0xc]
call fcn.004154ff
add esp, 0xc
test eax, eax
jne 0x40d8bf
lea eax, [ebp - 0xa0]
jmp 0x40d8e2
push 0x42f63c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Arch
push dword [ebp - 0xc]
call fcn.004154ff
add esp, 0xc
test eax, eax
jne 0x40d8e9
lea eax, [ebp - 0x78]
push dword [ebp - 0x1c]
push esi
push eax
jmp 0x40d910
push 0x42f64c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Version
push dword [ebp - 0xc]
call fcn.004154ff
add esp, 0xc
test eax, eax
jne 0x40d914
push dword [ebp - 0x1c]
push esi
push dword [ebp + 0xc]
call edi
jmp 0x40d975
push 0x42f664
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Locale
push dword [ebp - 0xc]
call fcn.004154ff
add esp, 0xc
test eax, eax
jne 0x40d945
push 3
push esi
lea eax, [ebp - 0x28]
push eax
call edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x40d975
push 0x42f674
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.Cntry
push dword [ebp - 0xc]
call fcn.004154ff
add esp, 0xc
test eax, eax
jne 0x40d975
push 3
push esi
lea eax, [ebp - 8]
push eax
call edi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
jmp 0x40d824
push ebx
push 1
push ebx
push 0x2800
push dword [ebp + 8]
lea eax, [ebp - 0x1f0]
push eax
call fcn.0040ccfb
add esp, 0x18
test eax, eax
jns 0x40d9ae
push ebx
lea eax, [ebp - 0x1f0]
push eax
push str.FAILED_to_read_map.xml_File
jmp 0x40d7f1
push dword [ebp + 8]
call fcn.0040bddb
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x40d7f8
push str.java_update_map
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40d7f8
push 0x42f6b0
push dword [esi + 0xc]
call fcn.0040bc84
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
cmp eax, ebx
je 0x40da30
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40da30
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 0x40da03
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3f0]
push eax
call fcn.0040e0e2
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x40da46
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call edi
jmp 0x40da46
push 0x42f6c0
lea eax, [ebp - 8]
push eax
call edi
push str.No_cntry_lookup_tag_in_map.xml
call fcn.0040fb5b
pop ecx
push str.DEBUG
push dword [esi + 0xc]
call fcn.0040bc84
pop ecx
pop ecx
cmp eax, ebx
je 0x40da69
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40da69
push dword [eax + 4]
call fcn.0040d435
pop ecx
mov eax, dword [ebp - 0x10]
push 0x42f6ec
push dword [eax + 0xc]
call fcn.0040bc84
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
pop ecx
test eax, eax
je 0x40dabb
lea eax, [ebp - 4]
push 1
push eax
call fcn.0040f2c1
pop ecx
pop ecx
test eax, eax
je 0x40dabb
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push 0x42f6f8
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push 0x42f704
push dword [eax + 0xc]
call fcn.0040bc84
pop ecx
pop ecx
test eax, eax
je 0x40db01
lea eax, [ebp - 4]
push 1
push eax
call fcn.0040f2c1
pop ecx
pop ecx
test eax, eax
je 0x40db01
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push 0x42f710
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call edi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push 0x42f71c
push dword [eax + 0xc]
call fcn.0040bc84
pop ecx
pop ecx
mov edi, eax
jmp 0x40ddcb
push str.mapping
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40ddc8
push 0x42f72c
push dword [edi + 0xc]
call fcn.0040bc84
push 0x42f734
push dword [edi + 0xc]
mov esi, eax
call fcn.0040bc84
add esp, 0x10
cmp esi, ebx
je 0x40ddc8
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x40ddc8
cmp eax, ebx
je 0x40ddc8
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ddc8
push ebx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.0040d22f
add esp, 0x10
test eax, eax
jne 0x40dbb0
push ebx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0x10]
push dword [esi + 4]
call fcn.0040d22f
add esp, 0x10
test eax, eax
je 0x40ddc8
cmp dword [ebp + 0x18], ebx
je 0x40dbcc
push str.critical
push dword [edi + 0xc]
call fcn.0040bc84
pop ecx
pop ecx
test eax, eax
je 0x40ddc8
push 0x42f744
push dword [edi + 0xc]
call fcn.0040bc84
pop ecx
pop ecx
cmp eax, ebx
je 0x40dc46
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40dc46
push 1
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push dword [eax + 4]
call fcn.0040d22f
add esp, 0x10
test eax, eax
je 0x40ddc8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.arch
push dword [edi + 0xc]
call fcn.0040bc84
pop ecx
pop ecx
cmp eax, ebx
je 0x40dc5c
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40dc5c
push ebx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push dword [eax + 4]
call fcn.0040d22f
add esp, 0x10
test eax, eax
jne 0x40dc67
jmp 0x40ddc8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42f26b
lea eax, [ebp - 0x8c]
push eax
call esi
jmp 0x40dc0f
push 0x42f272
lea eax, [ebp - 0x64]
push eax
call esi
push str.cntry
push dword [edi + 0xc]
call fcn.0040bc84
pop ecx
pop ecx
cmp eax, ebx
je 0x40dc9e
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40dc9e
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [eax + 4]
call fcn.0040d22f
add esp, 0x10
test eax, eax
jne 0x40dca9
jmp 0x40ddc8
push 0x42f273
lea eax, [ebp - 0x3c]
push eax
call esi
push str.locale
push dword [edi + 0xc]
call fcn.0040bc84
pop ecx
pop ecx
cmp eax, ebx
je 0x40dcdf
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x40dcdf
push ebx
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x20]
push dword [eax + 4]
call fcn.0040d22f
add esp, 0x10
test eax, eax
jne 0x40dcea
jmp 0x40ddc8
push 0x42f299
lea eax, [ebp - 0x50]
push eax
call esi
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0040d206
pop ecx
pop ecx
cmp eax, ebx
jne 0x40dd5a
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0040d206
pop ecx
pop ecx
cmp eax, ebx
jne 0x40dd5a
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040d206
pop ecx
pop ecx
cmp eax, ebx
jne 0x40dd5a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d206
pop ecx
pop ecx
cmp eax, ebx
jne 0x40dd5a
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040d206
pop ecx
pop ecx
cmp eax, 2
jne 0x40ddc8
xor eax, eax
mov cl, byte [ebp + eax - 0x2f0]
mov byte [ebp + eax - 0x4f0], cl
inc eax
cmp cl, bl
jne 0x40dd61
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 0x40dd80
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 0x40db1a
push 0xff
lea eax, [ebp - 0x5ef]
push ebx
push eax
mov byte [ebp - 0x5f0], bl
call fcn.00412420
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 [0x43b3e8]
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.0040fb5b
add esp, 0x30
cmp dword [ebp - 0x24], ebx
je 0x40de43
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 0x40de39
mov eax, dword [ebp - 0x24]
jmp 0x40d7fa