Function at 0x40b230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431abd
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x244], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x248], esi
mov word [esi], ax
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], eax
mov word [ebp - 0x23c], ax
mov dword [ebp - 4], 1
xor edi, edi
call fcn.0041d340
test al, al
mov ecx, 0x200
cmovne edi, ecx
lea eax, [ebp - 0x240]
push eax
or edi, 0x20019
push edi
push 0
push str.SoftwareClasses.htm_
push 0x80000001
mov dword [ebp - 0x240], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b490
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push dword [ebp - 0x240]
mov dword [ebp - 0x21c], 0x208
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b490
cmp word [ebp - 0x218], ax
jne 0x40b357
xor ecx, ecx
jmp 0x40b36f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b360
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00402fc0
push 0x14
push str._shellopencommand_
lea ecx, [ebp - 0x23c]
call fcn.00403b10
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x240]
push ecx
push edi
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push 0
push eax
push 0x80000000
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b490
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push dword [ebp - 0x240]
mov dword [ebp - 0x21c], 0x208
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b490
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00406450
push 1
push 0
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
mov dword [ebp - 0x224], 0x22
call fcn.00406a50
mov edi, eax
cmp edi, 0xffffffff
je 0x40b490
push 1
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
mov dword [ebp - 0x224], 0x22
call fcn.00406a50
cmp eax, 0xffffffff
je 0x40b490
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x40b471
mov ecx, dword [esi]
jmp 0x40b473
mov ecx, esi
lea ecx, [ecx + eax*2]
cmp edx, 8
jb 0x40b47f
mov eax, dword [esi]
jmp 0x40b481
mov eax, esi
lea eax, [eax + edi*2]
push ecx
add eax, 2
push eax
mov ecx, esi
call fcn.004037d0
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x228], 8
jb 0x40b4b4
push dword [ebp - 0x23c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret