Function at 0x40a115
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40ee8c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x418
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x18]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x412dc4
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
call esi
cmp eax, ebx
jne 0x40a173
lea ecx, [ebp - 0x20]
call fcn.0040c520
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
je 0x40a1a7
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040c520
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040c520
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040c520
jmp 0x40a2e9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push edi
push ebx
push 0x412dd0
push ecx
call esi
cmp eax, ebx
jne 0x40a173
lea ecx, [ebp - 0x14]
call fcn.0040c520
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x40a173
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push edi
push ebx
push 0x412ddc
push ecx
call esi
cmp eax, ebx
jne 0x40a173
lea ecx, [ebp - 0x10]
call fcn.0040c520
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x40a173
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push edi
push ebx
push 0x412de8
push ecx
call esi
cmp eax, ebx
jne 0x40a173
lea ecx, [ebp - 0x1c]
call fcn.0040c520
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x40a173
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x400
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x412df0
push ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40a173
lea eax, [ebp - 0x424]
test eax, eax
jne 0x40a264
xor edi, edi
jmp 0x40a299
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040e730
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x424]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
push esi
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push 4
mov edi, 0x40fad8
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40a2f0
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a2c5
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x10], ebx
je 0x40a2d2
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x40a2df
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x20], ebx
je 0x40a2e9
push dword [ebp - 0x20]
call esi
mov eax, 0x80004005
jmp 0x40a329
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a303
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x10], ebx
je 0x40a310
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x40a31d
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x20], ebx
je 0x40a327
push dword [ebp - 0x20]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x430]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret