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

Disassembly:
push ebp
sub esp, 0xc30
lea ebp, [esp - 4]
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0xc30], eax
push 0x20
mov eax, 0x10059128
call fcn.10039bd1
mov edi, dword [ebp + 0xc3c]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], esi
push 0x10069d4c
mov dword [ebp - 4], esi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
cmp eax, esi
jne 0x1002c362
mov dword [edi], esi
jmp 0x1002c57d
mov ebx, 0x208
push ebx
lea ecx, [ebp + 0x618]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x618]
push str.jvm.dll
push eax
call fcn.1003b150
pop ecx
pop ecx
test eax, eax
je 0x1002c563
push ebx
lea eax, [ebp + 0x820]
push eax
lea eax, [ebp + 0x618]
push eax
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
lea eax, [ebp + 0x820]
push str._bin
push eax
call fcn.1003b150
pop ecx
pop ecx
cmp eax, esi
je 0x1002c3c2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push 0x10069dd0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002c563
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xa28]
push eax
mov dword [ebp - 0x14], esi
mov edi, 0x104
push esi
jmp 0x1002c536
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x10], esi
jbe 0x1002c521
cmp word [ebp + eax*2 + 0xa28], 0x2e
jne 0x1002c428
inc ecx
cmp ecx, 1
jg 0x1002c437
inc eax
cmp eax, dword [ebp - 0x10]
jb 0x1002c417
cmp ecx, 1
jle 0x1002c521
lea eax, [ebp + 0xa28]
push 0x10069e28
push eax
call fcn.1003b150
pop ecx
pop ecx
test eax, eax
js 0x1002c521
lea eax, [ebp + 0xa28]
push eax
call fcn.10036485
pop ecx
test al, al
je 0x1002c521
lea eax, [ebp + 0xa28]
push eax
push 0x10069e40
push 0x10069e34
lea eax, [ebp + 0x208]
push edi
push eax
call fcn.10004bac
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
push 0x20019
push esi
lea eax, [ebp + 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002c521
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x10069e98
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002c518
push 0x208
lea eax, [ebp]
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
lea ecx, [ebp + 0x820]
lea eax, [ebp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002c50f
cmp dx, si
je 0x1002c50b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002c50f
add eax, 4
add ecx, 4
cmp dx, si
jne 0x1002c4e9
xor eax, eax
jmp 0x1002c514
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x1002c548
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x14]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xa28]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call ebx
test eax, eax
je 0x1002c407
jmp 0x1002c557
lea eax, [ebp + 0xa28]
push eax
lea ecx, [ebp - 0x20]
call fcn.100014b2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
mov dword [edi], ebx
cmp ebx, esi
je 0x1002c57d
lea eax, [ebx + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
mov ecx, ebx
call fcn.10001441
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.10039bc2
add ebp, 0xc34
leave
ret