Function at 0x402297
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x468114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x220], eax
push 0x100
lea eax, [ebp - 0x204]
mov dword [ebp - 0x224], esi
push edi
push eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x20c], edi
call fcn.00416020
and dword [ebp - 0x208], edi
add esp, 0xc
mov dword [ebp - 0x214], edi
cmp dword [ebp - 0x220], edi
je 0x40273a
test esi, esi
je 0x40273a
push 0x20019
mov ecx, ebx
call fcn.004031c2
mov esi, eax
test esi, esi
js 0x40273f
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebx + 8]
and eax, 0x300
or eax, 0x20019
push eax
push edi
push str.Providers
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402701
xor ecx, ecx
lea eax, [ebp - 0x214]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402701
imul eax, dword [ebp - 0x214], 0x140
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
jne 0x40238e
mov esi, 0x8007000e
jmp 0x40273f
imul eax, dword [ebp - 0x214], 0x140
push eax
push 0
push edi
call fcn.00416020
and dword [ebp - 0x21c], 0
add esp, 0xc
cmp dword [ebp - 0x214], 0
jbe 0x40270f
lea eax, [edi + 0x110]
mov dword [ebp - 0x210], eax
mov eax, 0x100
xor esi, esi
push eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.00416020
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40241b
cmp eax, 0xea
jne 0x402701
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebx + 8]
and eax, 0x300
or eax, 0x20019
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402701
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
push str.DisplayName
push dword [ebp - 0x20c]
call fcn.00402ba5
mov esi, eax
test esi, esi
js 0x402719
push dword [ebp + 0x10]
mov esi, 0x100
lea eax, [ebp - 0x104]
push esi
push eax
mov ecx, ebx
call fcn.004036c2
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x210]
add eax, 0xfffffef0
push esi
push eax
call fcn.00422bd7
add esp, 0xc
mov dword [ebp - 0x208], esi
lea eax, [ebp - 0x208]
mov ecx, ebx
push eax
lea eax, [ebp - 0x104]
push eax
push str.ProviderConfigCLSID
push dword [ebp - 0x20c]
call fcn.00402ba5
mov esi, eax
test esi, esi
js 0x402719
lea eax, [ebp - 0x104]
push eax
call fcn.00422d70
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x4024ff
xor eax, eax
jmp 0x402519
lea eax, [esi + esi]
call fcn.004147d0
mov eax, esp
lea ecx, [ebp - 0x104]
push 3
push esi
push ecx
push eax
call fcn.0040133e
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff0
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
test esi, esi
js 0x402719
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
push str.ProviderRunTimeCLSID
push dword [ebp - 0x20c]
call fcn.00402ba5
mov esi, eax
test esi, esi
js 0x402719
lea eax, [ebp - 0x104]
push eax
call fcn.00422d70
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x402584
xor eax, eax
jmp 0x40259e
lea eax, [esi + esi]
call fcn.004147d0
mov eax, esp
lea ecx, [ebp - 0x104]
push 3
push esi
push ecx
push eax
call fcn.0040133e
push dword [ebp - 0x210]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
test esi, esi
js 0x402719
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
push str.ProviderGlobalCLSID
push dword [ebp - 0x20c]
call fcn.00402ba5
cmp eax, 0x80070002
je 0x40263b
test eax, eax
js 0x40263b
lea eax, [ebp - 0x104]
push eax
call fcn.00422d70
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x402606
xor eax, eax
jmp 0x402620
lea eax, [esi + esi]
call fcn.004147d0
mov eax, esp
lea ecx, [ebp - 0x104]
push 3
push esi
push ecx
push eax
call fcn.0040133e
mov ecx, dword [ebp - 0x210]
add ecx, 0x10
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
test esi, esi
js 0x402719
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
push str.ProviderUserCLSID
push dword [ebp - 0x20c]
call fcn.00402ba5
mov esi, eax
cmp esi, 0x80070002
jne 0x402673
xor esi, esi
jmp 0x4026c4
test esi, esi
js 0x4026c4
lea eax, [ebp - 0x104]
push eax
call fcn.00422d70
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x402693
xor eax, eax
jmp 0x4026ad
lea eax, [esi + esi]
call fcn.004147d0
mov eax, esp
lea ecx, [ebp - 0x104]
push 3
push esi
push ecx
push eax
call fcn.0040133e
mov ecx, dword [ebp - 0x210]
add ecx, 0x20
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
test esi, esi
js 0x402719
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x4026dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x21c]
add dword [ebp - 0x210], 0x140
inc eax
mov dword [ebp - 0x21c], eax
cmp eax, dword [ebp - 0x214]
jb 0x4023c4
jmp 0x40270f
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, edi
test esi, esi
jns 0x402722
test eax, eax
je 0x40273f
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40273f
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
mov dword [eax], edi
mov eax, dword [ebp - 0x214]
mov dword [ecx], eax
jmp 0x40273f
mov esi, 0x80004003
cmp dword [ebp - 0x218], 0
je 0x402754
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x402765
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x23c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146b1
leave
ret 0xc