Function at 0x10004740
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
call fcn.1000dd80
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
call fcn.1000dd80
push ebx
lea ecx, [esp + 0x24]
call fcn.1000dd80
push 0xfa0
call fcn.1000ea50
mov edi, dword [ebp + 8]
add esp, 4
push str.java_util_Vector
mov dword [esp + 0x10], eax
mov eax, dword [edi]
push edi
mov dword [esp + 0x18], ebx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
mov dword [esp + 0x3c], esi
je 0x10004ada
mov ecx, dword [edi]
push str.java_lang_String
push edi
call dword [ecx + 0x18]
test eax, eax
je 0x10004ada
mov edx, dword [edi]
push str._I_V
push str._init_
push esi
push edi
call dword [edx + 0x84]
test eax, eax
mov dword [esp + 0x44], eax
je 0x10004ada
mov eax, dword [edi]
push str._Ljava_lang_Object__V
push str.addElement
push esi
push edi
call dword [eax + 0x84]
test eax, eax
mov dword [esp + 0x40], eax
je 0x10004ada
push str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x1c]
call fcn.1000dfa0
lea ecx, [esp + 0x30]
push ecx
push 0x20019
push ebx
lea ecx, [esp + 0x24]
call fcn.1000dd60
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10004838
cmp eax, 2
je 0x10004838
mov edx, dword [esp + 0xc]
push edx
jmp 0x10004ad2
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x7c]
push edx
push 0
push eax
mov dword [esp + 0x54], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x100049d9
lea ecx, [ecx]
inc dword [esp + 0x14]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.1000e1e0
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
call fcn.1000e0f0
lea ecx, [esp + 0x5c]
call fcn.1000d8c0
lea ecx, [esp + 0x38]
push ecx
push 0x20019
push 0
lea ecx, [esp + 0x34]
call fcn.1000dd60
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100048cc
cmp eax, 2
jne 0x10004acd
push str.Group
lea edx, [esp + 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x26c]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x6c]
push edx
push 0
lea eax, [esp + 0x178]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004992
lea edx, [esp + 0x268]
push edx
lea ecx, [esp + 0x24]
call fcn.1000dfa0
lea ecx, [esp + 0x20]
call fcn.1000dc70
test eax, eax
je 0x10004992
push 8
call fcn.1000ea50
mov esi, eax
add esp, 4
test esi, esi
je 0x10004953
push 0
lea ecx, [esp + 0x24]
call fcn.1000d920
push eax
mov ecx, esi
call fcn.10004b00
mov ebx, eax
jmp 0x10004955
xor ebx, ebx
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x1000497e
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + esi*4]
push ebx
call fcn.10004bb0
test eax, eax
jne 0x10004ab0
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x10004960
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [ecx + eax*4], ebx
inc eax
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x7c]
push edx
push eax
push ecx
mov dword [esp + 0x54], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x10004870
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
push 0x10002730
push 4
push ebx
push edx
call fcn.1000f340
mov edx, dword [esp + 0x54]
mov eax, dword [edi]
add esp, 0x10
lea ecx, [esp + 0x48]
push ecx
push edx
push esi
push edi
mov dword [esp + 0x58], ebx
call dword [eax + 0x78]
xor esi, esi
test ebx, ebx
mov dword [esp + 0x14], eax
jbe 0x10004a49
lea ecx, [ecx]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + esi*4]
push 0
call fcn.1000d920
push eax
push edi
call fcn.100021b0
mov ecx, dword [edi]
add esp, 8
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
push eax
push edx
push edi
call dword [ecx + 0xfc]
inc esi
cmp esi, ebx
jb 0x10004a10
xor edi, edi
test ebx, ebx
jle 0x10004a70
nop
mov eax, dword [esp + 0xc]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x10004a6b
mov ecx, esi
call fcn.10002800
push esi
call fcn.1000ce20
add esp, 4
inc edi
cmp edi, ebx
jl 0x10004a50
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1000ce20
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.1000d8c0
lea ecx, [esp + 0x28]
call fcn.1000d8c0
lea ecx, [esp + 0x18]
call fcn.1000d8c0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x1000498e
mov ecx, ebx
call fcn.10002800
push ebx
call fcn.1000ce20
add esp, 4
jmp 0x1000498e
mov eax, dword [esp + 0xc]
push eax
call fcn.1000ce20
add esp, 4
lea ecx, [esp + 0x20]
call fcn.1000d8c0
lea ecx, [esp + 0x28]
call fcn.1000d8c0
lea ecx, [esp + 0x18]
call fcn.1000d8c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8