Function at 0x10003f1d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x140
mov eax, 0x1001c94a
call fcn.1001c34a
mov dword [ebp - 0x128], edx
mov esi, ecx
mov dword [ebp - 0x124], esi
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
test edx, edx
je 0x1000429f
mov edx, 0x1001e3dc
call fcn.10001332
test eax, eax
jne 0x1000429f
lea eax, [ebp - 0x12c]
push eax
push 0x1001eb38
push ecx
mov ecx, 0x1001e3fc
call fcn.1001507c
test eax, eax
js 0x1000429f
mov eax, dword [ebp - 0x128]
jmp 0x10003ff6
lea edi, [ebp - 0x120]
mov esi, dword [eax + 4]
lea edx, [ebp - 0x120]
push edx
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 8], ebx
je 0x10003fca
cmp dword [eax], 1
mov eax, dword [ebp - 0x12c]
push dword [ebp - 0x124]
push eax
mov ecx, dword [eax]
jne 0x10003fb7
call dword [ecx + 0x14]
jmp 0x10003fba
call dword [ecx + 0x1c]
test eax, eax
js 0x100042a1
mov esi, dword [ebp - 0x124]
jmp 0x10003fe7
cmp dword [eax], 1
mov eax, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x124]
push esi
push eax
mov ecx, dword [eax]
jne 0x10003fe4
call dword [ecx + 0x18]
jmp 0x10003fe7
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x128]
add eax, 8
mov dword [ebp - 0x128], eax
cmp dword [eax], ebx
jne 0x10003f83
cmp dword [ebp + 8], ebx
jne 0x100042a3
push 0x40
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x1000401f
push 0xd
pop eax
jmp 0x100042a1
lea edx, [ebp - 0x110]
mov dword [ebp - 0x140], ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1000402e
sub edx, ecx
sar edx, 1
inc edx
push ecx
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x128], edx
call fcn.10001357
test eax, eax
js 0x10004292
mov esi, dword [ebp - 0x128]
cmp esi, 0x400
jg 0x1000407c
mov ecx, esi
call fcn.10001387
test al, al
je 0x1000407c
mov eax, esi
call fcn.1001c519
mov eax, esp
jmp 0x10004088
push esi
lea ecx, [ebp - 0x140]
call fcn.1001507c
push 3
push esi
lea edx, [ebp - 0x110]
mov ecx, eax
call fcn.1001507c
mov edi, eax
mov dword [ebp - 0x130], edi
test edi, edi
je 0x10004292
push str.CLSID_
lea eax, [ebp - 0x90]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, eax
call fcn.100014e5
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x90]
push 0x80
push eax
call edi
add esp, 0xc
mov ecx, eax
call fcn.100014e5
push str.Required_Categories
lea eax, [ebp - 0x90]
push 0x80
push eax
call edi
add esp, 0xc
mov ecx, eax
call fcn.100014e5
push 0x20019
lea eax, [ebp - 0x90]
mov dword [ebp - 0x148], ebx
mov ecx, SysReAllocString
mov dword [ebp - 0x144], ebx
push eax
mov dword [ebp - 0x14c], ecx
push ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x124], ebx
call fcn.1001507c
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100041b1
push ebx
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x124]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x128], eax
test esi, esi
je 0x1000418d
push esi
call edi
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
test eax, eax
jne 0x100041b1
cmp dword [ebp - 0x124], ebx
jne 0x100041b1
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x14c]
call fcn.1001507c
push str.CLSID_
lea eax, [ebp - 0x90]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, eax
call fcn.100014e5
push dword [ebp - 0x130]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x90]
push 0x80
push eax
call esi
add esp, 0xc
mov ecx, eax
call fcn.100014e5
push str.Implemented_Categories
lea eax, [ebp - 0x90]
push 0x80
push eax
call esi
add esp, 0xc
mov ecx, eax
call fcn.100014e5
push 0x20019
lea eax, [ebp - 0x90]
push eax
push SysReAllocString
lea ecx, [ebp - 0x13c]
call fcn.1001507c
mov esi, dword [ebp - 0x13c]
test eax, eax
jne 0x10004284
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x124]
push eax
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x130], eax
test esi, esi
je 0x10004266
push esi
call edi
mov eax, dword [ebp - 0x130]
mov esi, ebx
test eax, eax
jne 0x10004284
cmp dword [ebp - 0x124], ebx
jne 0x10004284
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x14c]
call fcn.1001507c
test esi, esi
je 0x1000428b
push esi
call edi
push SysReAllocString
call edi
lea ecx, [ebp - 0x140]
call fcn.10005668
jmp 0x100042a3
mov eax, ebx
mov ebx, eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x12c]
test ecx, ecx
je 0x100042ba
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
lea esp, [ebp - 0x15c]
call fcn.1001c2fc
ret 4