Function at 0x402110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
push edi
lea edi, [ebp - 0x254]
mov ecx, 0x95
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 0x2001f
push 0
mov ecx, dword [section..data]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.004031a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402352
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], 0x104
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x244], edx
mov byte [ebp - 0x245], 0
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [str.Configuration]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.004031a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xea
jne 0x402233
cmp dword [ebp - 0x2c], 0
jbe 0x402233
cmp dword [ebp - 0x2c], 0x40000
jae 0x402233
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 - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x244], eax
mov esi, esp
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x244]
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.004031a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40233f
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.004031a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40226c
or eax, 0xffffffff
jmp 0x402355
mov ecx, dword [str.oracle_javaaccessbridge]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.00402d50
add esp, 8
test eax, eax
je 0x402292
xor eax, eax
jmp 0x402355
mov esi, esp
mov eax, dword [str.oracle_javaaccessbridge]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.004031a0
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x2c], edx
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 - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x40233f
mov esi, esp
mov ecx, dword [str.oracle_javaaccessbridge]
push ecx
lea edx, [ebp - 0x23c]
push edx
push str._s__s
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp esi, esp
call fcn.004031a0
mov esi, esp
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
push 1
push 0
mov eax, dword [str.Configuration]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004031a0
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.004031a0
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x402384]
call fcn.0040314c
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031cf
add esp, 0x254
cmp ebp, esp
call fcn.004031a0
mov esp, ebp
pop ebp
ret