Function at 0x4023e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
push esi
push edi
lea edi, [ebp - 0x47c]
mov ecx, 0x11f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x408014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xffffffff
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push 0x2011f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.004031a2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40245e
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.004031a2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402771
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], 0x104
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x454], eax
mov byte [ebp - 0x455], 0
mov esi, esp
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x454]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [str.Configuration]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.004031a2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xea
jne 0x40252b
cmp dword [ebp - 0x2c], 0
jbe 0x40252b
cmp dword [ebp - 0x2c], 0x40000
jae 0x40252b
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402f48
add esp, 4
mov dword [ebp - 0x478], eax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x454], eax
mov esi, esp
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x454]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [str.Configuration]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.004031a2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40275e
mov esi, esp
push 0x104
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
add esp, 8
cmp esi, esp
call fcn.004031a2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x402564
or eax, 0xffffffff
jmp 0x402774
mov ecx, dword [str.oracle_javaaccessbridge]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.00402d50
add esp, 8
test eax, eax
jne 0x40258a
xor eax, eax
jmp 0x402774
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402f48
add esp, 4
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x45c], eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x470], ecx
mov byte [ebp - 0x471], 1
mov esi, esp
push 0x405a10
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x45c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.004031a2
mov esi, esp
lea ecx, [ebp - 0x464]
push ecx
push 0x405a14
mov edx, dword [ebp - 0x470]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
add esp, 0xc
cmp esi, esp
call fcn.004031a2
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
je 0x402715
mov esi, esp
mov eax, dword [ebp - 0x46c]
push eax
push 0x104
lea ecx, [ebp - 0x44c]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.004031a2
mov esi, esp
push 0x104
lea edx, [ebp - 0x44c]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
add esp, 8
cmp esi, esp
call fcn.004031a2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x402679
or eax, 0xffffffff
jmp 0x402774
mov eax, dword [str.oracle_javaaccessbridge]
push eax
lea ecx, [ebp - 0x44c]
push ecx
call fcn.00402d50
add esp, 8
test eax, eax
jne 0x4026ea
movzx edx, byte [ebp - 0x471]
test edx, edx
jne 0x4026bf
mov esi, esp
push 0x405a18
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.004031a2
mov byte [ebp - 0x471], 0
mov esi, esp
mov edx, dword [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.004031a2
mov esi, esp
lea edx, [ebp - 0x464]
push edx
push 0x405a1c
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
add esp, 0xc
cmp esi, esp
call fcn.004031a2
mov dword [ebp - 0x46c], eax
jmp 0x402618
mov esi, esp
mov eax, dword [ebp - 0x45c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.004031a2
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x2c], ecx
mov esi, esp
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x45c]
push eax
push 1
push 0
mov ecx, dword [str.Configuration]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004031a2
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.004031a2
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x4027a4]
call fcn.0040314e
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031c5
add esp, 0x47c
cmp ebp, esp
call fcn.004031a2
mov esp, ebp
pop ebp
ret