Function at 0x4021e0
Capabilities:
Query or enumerate registry value
Set 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 [0x406010]
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.00402e91
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402422
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.00402e91
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xea
jne 0x402303
cmp dword [ebp - 0x2c], 0
jbe 0x402303
cmp dword [ebp - 0x2c], 0x40000
jae 0x402303
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
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.00402e91
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40240f
mov esi, esp
push 0x104
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.MSVCR100.dll__wcslwr_s]
add esp, 8
cmp esi, esp
call fcn.00402e91
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40233c
or eax, 0xffffffff
jmp 0x402425
mov ecx, dword [str.oracle_javaaccessbridge]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.00402d00
add esp, 8
test eax, eax
je 0x402362
xor eax, eax
jmp 0x402425
mov esi, esp
mov eax, dword [str.oracle_javaaccessbridge]
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.00402e91
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 sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x40240f
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.00402e91
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.00402e91
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00402e91
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x402454]
call fcn.00402eb4
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e82
add esp, 0x254
cmp ebp, esp
call fcn.00402e91
mov esp, ebp
pop ebp
ret