Function at 0x4093d3
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x40eefc
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xc1c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
mov esi, 0x20019
push eax
push esi
push ebx
push 0x413d18
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], ebx
call edi
cmp eax, ebx
jne 0x40947f
lea ecx, [ebp - 0x20]
call fcn.0040bd29
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
jne 0x40947f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push esi
push ebx
push 0x413d24
push ecx
call edi
cmp eax, ebx
jne 0x40947f
lea ecx, [ebp - 0x1c]
call fcn.0040bd29
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x40947f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push esi
push ebx
push 0x413d30
push ecx
call edi
cmp eax, ebx
jne 0x40947f
lea ecx, [ebp - 0x14]
call fcn.0040bd29
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x4094b3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040bd29
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040bd29
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040bd29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040bd29
jmp 0x40970a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push dword [ebp + 8]
push eax
push ebx
push 0x413d4c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x409510
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040bd29
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040bd29
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040bd29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040bd29
mov eax, esi
jmp 0x40970c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push esi
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
call edi
cmp eax, ebx
jne 0x40956b
lea ecx, [ebp - 0x18]
call fcn.0040bd29
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40956b
lea eax, [ebp + 0x10]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x24]
push dword [ebp + 0xc]
push eax
push ebx
push 0x413d5c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40956b
push dword [ebp + 0xc]
call fcn.00409387
test eax, eax
pop ecx
je 0x40956b
push 1
pop esi
jmp 0x4094da
lea eax, [ebp - 0x428]
push 0x400
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x828], bl
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x409663
lea eax, [ebp - 0x828]
mov dword [ebp + 0x10], 0x400
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
pop ecx
test eax, eax
pop ecx
jle 0x40964f
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push esi
lea eax, [ebp - 0x428]
push ebx
push eax
push dword [ebp - 0x14]
call edi
cmp eax, ebx
jne 0x40964c
lea ecx, [ebp - 0x18]
call fcn.0040bd29
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40964c
lea eax, [ebp + 0x10]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0xc28]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.JavaHome
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40964c
cmp dword [ebp + 0x10], ebx
jbe 0x40964c
lea eax, [ebp - 0xc28]
push eax
call fcn.00409387
test eax, eax
pop ecx
je 0x40964c
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
push 0x413d74
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xc28]
push eax
push 0x413d78
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
inc dword [ebp - 0x10]
lea eax, [ebp - 0x428]
push 0x400
push eax
push dword [ebp - 0x10]
jmp 0x409581
lea edi, [ebp - 0x828]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4096d3
lea eax, [ebp - 0x828]
push eax
push 0x413d7c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 2
mov dword [ebp + 0x10], ecx
lea ecx, [ebp - 0x18]
call fcn.0040bd29
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040bd29
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040bd29
cmp dword [ebp - 0x20], ebx
je 0x4096ce
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40970c
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4096e6
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x14], ebx
je 0x4096f3
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], ebx
je 0x409700
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x40970a
push dword [ebp - 0x20]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret