Function at 0x402ec3
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x13c
mov eax, 0x40b677
call fcn.0040a957
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], ebx
test eax, eax
je 0x40321d
push 0x40d000
push esi
call fcn.00407159
test eax, eax
jne 0x40321d
lea eax, [ebp - 0x128]
push eax
push 0x40c680
push 1
push ebx
push 0x40d020
call fcn.0040934d
test eax, eax
js 0x40321d
mov eax, dword [ebp - 0x12c]
jmp 0x402fa3
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 + 0x10], ebx
je 0x402f77
cmp dword [eax], 1
mov eax, dword [ebp - 0x128]
push dword [ebp - 0x124]
push eax
mov ecx, dword [eax]
jne 0x402f64
call dword [ecx + 0x14]
jmp 0x402f67
call dword [ecx + 0x1c]
test eax, eax
js 0x40321f
mov esi, dword [ebp - 0x124]
jmp 0x402f94
cmp dword [eax], 1
mov eax, dword [ebp - 0x128]
mov esi, dword [ebp - 0x124]
push esi
push eax
mov ecx, dword [eax]
jne 0x402f91
call dword [ecx + 0x18]
jmp 0x402f94
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x12c]
add eax, 8
mov dword [ebp - 0x12c], eax
cmp dword [eax], ebx
jne 0x402f30
cmp dword [ebp + 0x10], ebx
jne 0x403221
push 0x40
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
neg eax
sbb eax, eax
neg eax
jne 0x402fd0
push 0xd
pop eax
jmp 0x40321f
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x130], ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x402fdf
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004012f1
test eax, eax
js 0x403210
mov esi, dword [ebp - 0x12c]
cmp esi, 0x400
jg 0x403031
push esi
call fcn.00406f75
test al, al
je 0x403031
mov eax, esi
call fcn.0040af02
mov eax, esp
jmp 0x40303d
push esi
lea ecx, [ebp - 0x130]
call fcn.004025ec
push 3
push esi
lea ecx, [ebp - 0x110]
push ecx
push eax
call fcn.004034c0
mov edi, eax
test edi, edi
je 0x403210
push 0x40c690
mov esi, 0x80
lea eax, [ebp - 0x90]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push eax
call fcn.004029b3
push edi
lea eax, [ebp - 0x90]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
push eax
call fcn.004029b3
push str.Required_Categories
lea eax, [ebp - 0x90]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
push eax
call fcn.004029b3
push 0x20019
lea eax, [ebp - 0x90]
mov dword [ebp - 0x144], ebx
mov ecx, Ordinal_1
mov dword [ebp - 0x140], ebx
push eax
mov dword [ebp - 0x148], 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.004052d3
test eax, eax
jne 0x403144
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 dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x13c]
mov esi, eax
call fcn.004038bb
test esi, esi
jne 0x40313f
cmp dword [ebp - 0x124], ebx
jne 0x40313f
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x148]
call fcn.00403cfe
mov esi, 0x80
push 0x40c690
lea eax, [ebp - 0x90]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push eax
call fcn.004029b3
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x90]
push esi
push eax
call edi
add esp, 0xc
push eax
call fcn.004029b3
push str.Implemented_Categories
lea eax, [ebp - 0x90]
push esi
push eax
call edi
add esp, 0xc
push eax
call fcn.004029b3
push 0x20019
lea eax, [ebp - 0x90]
push eax
push Ordinal_1
lea ecx, [ebp - 0x13c]
call fcn.004052d3
test eax, eax
jne 0x4031fa
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 dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x13c]
mov esi, eax
call fcn.004038bb
test esi, esi
jne 0x4031fa
cmp dword [ebp - 0x124], ebx
jne 0x4031fa
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x148]
call fcn.00403cfe
lea ecx, [ebp - 0x13c]
call fcn.004038bb
lea ecx, [ebp - 0x148]
call fcn.004038bb
lea ecx, [ebp - 0x130]
call fcn.00401660
jmp 0x403221
mov eax, ebx
mov ebx, eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 4], 5
test ecx, ecx
je 0x403238
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
lea esp, [ebp - 0x158]
call fcn.0040a916
ret 0xc