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

Disassembly:
push ebp
lea ebp, [esp - 0xc34]
sub esp, 0xc34
push 0xffffffffffffffff
push 0x10067ccf
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0xc30], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc3c]
xor esi, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
push 0x100916c8
mov dword [ebp - 4], esi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x1002cc55
mov dword [edi], esi
jmp 0x1002ce7c
mov ebx, 0x208
lea ecx, [ebp + 0x820]
push ebx
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x820]
push str.jvm.dll
push eax
call fcn.1003e1b7
pop ecx
pop ecx
test eax, eax
je 0x1002ce6b
push ebx
lea eax, [ebp + 0x618]
push eax
lea eax, [ebp + 0x820]
push eax
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
lea eax, [ebp + 0x618]
push str._bin
push eax
call fcn.1003e1b7
pop ecx
pop ecx
test eax, eax
je 0x1002ccb5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push 0x10091700
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002ce6b
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp + 0xa28]
mov dword [ebp - 0x10], 0x104
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002ce4a
mov eax, esi
mov dword [ebp - 0x24], 0x104
mov ecx, esi
cmp dword [ebp - 0x10], eax
jbe 0x1002ce23
cmp word [ebp + eax*2 + 0xa28], 0x2e
jne 0x1002cd2a
inc ecx
cmp ecx, 1
jg 0x1002cd39
inc eax
cmp eax, dword [ebp - 0x10]
jb 0x1002cd19
cmp ecx, 1
jle 0x1002ce23
lea eax, [ebp + 0xa28]
push 0x100916f4
push eax
call fcn.10057745
pop ecx
pop ecx
test eax, eax
js 0x1002ce23
lea eax, [ebp + 0xa28]
push eax
call fcn.100379a5
pop ecx
test al, al
je 0x1002ce23
lea eax, [ebp + 0xa28]
push eax
push 0x10091758
push 0x100917b0
lea eax, [ebp + 0x410]
push 0x104
push eax
call fcn.10057745
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
lea eax, [ebp + 0x410]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002ce23
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x100917bc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002ce1e
push 0x208
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
lea ecx, [ebp + 0x618]
lea eax, [ebp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002ce15
test dx, dx
je 0x1002ce11
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002ce15
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002cdef
mov eax, esi
jmp 0x1002ce1a
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002ce54
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push esi
push esi
push esi
push esi
push ecx
lea ecx, [ebp + 0xa28]
mov dword [ebp - 0x10], 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1002cd05
jmp 0x1002ce66
lea eax, [ebp + 0xa28]
push eax
lea ecx, [ebp - 0x20]
call fcn.100015e9
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x14]
call ebx
mov dword [edi], esi
test esi, esi
je 0x1002ce7c
lock inc dword [esi + 8]
mov ecx, esi
call fcn.100016f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc30]
xor ecx, ebp
call fcn.1003a5a7
add ebp, 0xc34
leave
ret