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

Disassembly:
push ebp
lea ebp, [esp - 0xc34]
sub esp, 0xc34
push 0xffffffffffffffff
push 0x1006adc0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100be114]
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 esi, dword [ebp + 0xc3c]
xor eax, eax
mov dword [ebp - 0x28], esi
inc eax
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [esi], edi
push 0x10094af4
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002da35
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.1003f2ae
pop ecx
pop ecx
test eax, eax
je 0x1002da35
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.1003f2ae
pop ecx
pop ecx
test eax, eax
je 0x1002d881
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push 0x10094b78
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x1002da35
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp + 0xa28]
mov dword [ebp - 0x10], 0x104
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002da18
xor eax, eax
mov dword [ebp - 0x24], 0x104
xor ecx, ecx
cmp dword [ebp - 0x10], eax
jbe 0x1002d9ef
cmp word [ebp + eax*2 + 0xa28], 0x2e
jne 0x1002d8f8
inc ecx
cmp ecx, 1
jg 0x1002d907
inc eax
cmp eax, dword [ebp - 0x10]
jb 0x1002d8e7
cmp ecx, 1
jle 0x1002d9ef
lea eax, [ebp + 0xa28]
push 0x10094bd0
push eax
call fcn.1004d20a
pop ecx
pop ecx
test eax, eax
js 0x1002d9ef
lea eax, [ebp + 0xa28]
push eax
call fcn.100389a5
pop ecx
test al, al
je 0x1002d9ef
lea eax, [ebp + 0xa28]
push eax
push 0x10094be8
push 0x10094bdc
lea eax, [ebp + 0x410]
push 0x104
push eax
call fcn.10006c5f
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
lea eax, [ebp + 0x410]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x1002d9ef
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x10094c40
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002d9ea
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 0x1002d9e1
test dx, dx
je 0x1002d9dd
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002d9e1
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002d9bb
xor eax, eax
jmp 0x1002d9e6
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002da22
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push ecx
lea ecx, [ebp + 0xa28]
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 0x1002d8d3
jmp 0x1002da30
lea eax, [ebp + 0xa28]
mov ecx, esi
push eax
call fcn.100015d8
push dword [ebp - 0x14]
call edi
mov eax, esi
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.1003b105
add ebp, 0xc34
leave
ret