Function at 0x4038a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4110e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x128], ebx
mov esi, ecx
mov dword [ebp - 0x120], esi
push edi
test edx, edx
je 0x403c43
mov edx, 0x40c2f0
call fcn.00404948
test eax, eax
jne 0x403c43
lea eax, [ebp - 0x128]
mov edi, 0x40c2e0
push eax
push 0x40c82c
push 1
push ebx
push edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x403c43
push eax
lea edx, [ebp - 0x128]
mov ecx, edi
call fcn.004091dc
test eax, eax
js 0x403c43
mov eax, dword [ebp - 0x124]
jmp 0x40399a
lea edi, [ebp - 0x11c]
mov esi, dword [eax + 4]
lea edx, [ebp - 0x11c]
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 0x40396e
cmp dword [eax], 1
mov eax, dword [ebp - 0x128]
push dword [ebp - 0x120]
push eax
mov ecx, dword [eax]
jne 0x40395b
call dword [ecx + 0x14]
jmp 0x40395e
call dword [ecx + 0x1c]
test eax, eax
js 0x403c45
mov esi, dword [ebp - 0x120]
jmp 0x40398b
cmp dword [eax], 1
mov eax, dword [ebp - 0x128]
mov esi, dword [ebp - 0x120]
push esi
push eax
mov ecx, dword [eax]
jne 0x403988
call dword [ecx + 0x18]
jmp 0x40398b
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x124]
add eax, 8
mov dword [ebp - 0x124], eax
cmp dword [eax], ebx
jne 0x403927
cmp dword [ebp + 8], ebx
jne 0x403c47
push 0x40
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x4039c3
push 0xd
pop eax
jmp 0x403c45
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x13c], ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4039d2
sub edx, ecx
sar edx, 1
inc edx
push ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x124], edx
call fcn.0040545e
test eax, eax
js 0x403c36
mov esi, dword [ebp - 0x124]
cmp esi, 0x400
jg 0x403a20
mov ecx, esi
call fcn.004054be
test al, al
je 0x403a20
mov eax, esi
call fcn.0040b0df
mov eax, esp
jmp 0x403a2c
push esi
lea ecx, [ebp - 0x13c]
call fcn.00405526
push 3
push esi
lea edx, [ebp - 0x10c]
mov ecx, eax
call fcn.00404e75
mov edi, eax
mov dword [ebp - 0x12c], edi
test edi, edi
je 0x403c36
push str.CLSID_
lea eax, [ebp - 0x8c]
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.004059f4
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x8c]
push 0x80
push eax
call edi
add esp, 0xc
mov ecx, eax
call fcn.004059f4
push 0x40c83c
lea eax, [ebp - 0x8c]
push 0x80
push eax
call edi
add esp, 0xc
mov ecx, eax
call fcn.004059f4
push 0x20019
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x144], ebx
mov ecx, SysReAllocString
mov dword [ebp - 0x140], ebx
push eax
mov dword [ebp - 0x148], ecx
push ecx
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x120], ebx
call fcn.00405b22
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403b55
push ebx
mov esi, dword [ebp - 0x138]
lea eax, [ebp - 0x120]
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 - 0x124], eax
test esi, esi
je 0x403b31
push esi
call edi
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
test eax, eax
jne 0x403b55
cmp dword [ebp - 0x120], ebx
jne 0x403b55
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x148]
call fcn.00405cf8
push str.CLSID_
lea eax, [ebp - 0x8c]
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.004059f4
push dword [ebp - 0x12c]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x8c]
push 0x80
push eax
call esi
add esp, 0xc
mov ecx, eax
call fcn.004059f4
push str.Implemented_Categories
lea eax, [ebp - 0x8c]
push 0x80
push eax
call esi
add esp, 0xc
mov ecx, eax
call fcn.004059f4
push 0x20019
lea eax, [ebp - 0x8c]
push eax
push SysReAllocString
lea ecx, [ebp - 0x138]
call fcn.00405b22
mov esi, dword [ebp - 0x138]
test eax, eax
jne 0x403c28
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x12c], eax
test esi, esi
je 0x403c0a
push esi
call edi
mov eax, dword [ebp - 0x12c]
mov esi, ebx
test eax, eax
jne 0x403c28
cmp dword [ebp - 0x120], ebx
jne 0x403c28
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x148]
call fcn.00405cf8
test esi, esi
je 0x403c2f
push esi
call edi
push SysReAllocString
call edi
lea ecx, [ebp - 0x13c]
call fcn.00405444
jmp 0x403c47
mov eax, ebx
mov ebx, eax
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x403c57
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
lea esp, [ebp - 0x154]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409ef7
mov esp, ebp
pop ebp
ret 4