Function at 0x409d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b8d3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc40
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc1c], esi
mov dword [ebp - 0xc4c], esi
mov dword [ebp - 0xc30], 0
mov dword [ebp - 4], 3
xorps xmm0, xmm0
push 0
movups xmmword [esi], xmm0
push 0x48f726
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0040b940
push 0xc00
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc30], 1
push 0
push eax
call fcn.0045c980
xorps xmm0, xmm0
mov dword [ebp - 0xc24], 0
movq qword [ebp - 0xc2c], xmm0
add esp, 0xc
mov dword [ebp - 0xc20], 0xc00
mov dword [ebp - 0xc2c], 0
mov dword [ebp - 0xc28], 0
mov dword [ebp - 0xc24], 0
mov byte [ebp - 4], 4
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
lea ecx, [ebp - 0xc2c]
push 0x20019
cmovae eax, dword [ebx + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004017b0
test eax, eax
jne 0x409f69
cmp dword [ebx + 0x34], 0x10
lea ecx, [ebp - 0xc20]
mov edi, dword [ebp - 0xc2c]
lea eax, [ebx + 0x20]
cmovae eax, dword [ebx + 0x20]
push ecx
lea ecx, [ebp - 0xc18]
mov dword [ebp - 0xc1c], 0
push ecx
lea ecx, [ebp - 0xc1c]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409ea6
mov ecx, dword [ebp - 0xc20]
test ecx, ecx
je 0x409ece
mov eax, dword [ebp - 0xc1c]
sub eax, 1
je 0x409e95
sub eax, 1
je 0x409e95
sub eax, 5
jne 0x409e9f
cmp ecx, 1
jb 0x409e9f
cmp byte [ebp + ecx - 0xc19], al
jne 0x409e9f
cmp ecx, 1
jbe 0x409ed5
cmp byte [ebp + ecx - 0xc1a], al
jne 0x409e9f
jmp 0x409ed5
cmp byte [ebp + ecx - 0xc19], 0
je 0x409ed5
mov byte [ebp - 0xc18], 0
lea eax, [ebx + 0x38]
cmp esi, eax
je 0x409ec0
cmp dword [ebx + 0x4c], 0x10
mov ecx, esi
push dword [ebx + 0x48]
cmovae eax, dword [ebx + 0x38]
push eax
call fcn.0040b250
test edi, edi
je 0x409f94
push edi
jmp 0x409f8e
mov byte [ebp - 0xc18], 0
lea ecx, [ebp - 0xc18]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409ee0
sub ecx, edx
je 0x409ec0
push ecx
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc38], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc34], 0
push eax
lea ecx, [ebp - 0xc48]
movups xmmword [ebp - 0xc48], xmm0
call fcn.0040b940
lea eax, [ebp - 0xc48]
mov ecx, esi
push eax
call fcn.0040b050
mov ecx, dword [ebp - 0xc34]
cmp ecx, 0x10
jb 0x409ec0
mov edx, dword [ebp - 0xc48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409f5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a06c
push ecx
push edx
call fcn.0045b012
add esp, 8
jmp 0x409ec0
lea eax, [ebx + 0x38]
cmp esi, eax
je 0x409f83
cmp dword [ebx + 0x4c], 0x10
mov ecx, esi
push dword [ebx + 0x48]
cmovae eax, dword [ebx + 0x38]
push eax
call fcn.0040b250
mov eax, dword [ebp - 0xc2c]
test eax, eax
je 0x409f94
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x409fc8
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409fbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a06c
push ecx
push edx
call fcn.0045b012
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0x10
jb 0x40a00a
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a000
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a06c
push ecx
push edx
call fcn.0045b012
add esp, 8
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
cmp ecx, 0x10
jb 0x40a04c
mov edx, dword [ebx + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a042
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a06c
push ecx
push edx
call fcn.0045b012
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0045eee7
int3