Function at 0x4063b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44951b
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x45e764]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
push edi
mov eax, dword [0x45e764]
xor eax, esp
push eax
lea eax, [esp + 0xc24]
mov dword fs:[0], eax
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x825]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x82c], bl
call fcn.004338b0
push 0x3ff
lea ecx, [esp + 0x431]
push ebx
push ecx
mov byte [esp + 0x438], bl
call fcn.004338b0
push 0x44d674
lea edx, [esp + 0x43c]
push 0x400
push edx
call fcn.00433fec
push 0x44d650
lea eax, [esp + 0x848]
push 0x400
push eax
call fcn.00433fec
add esp, 0x30
xor edi, edi
call fcn.004145e0
test eax, eax
je 0x406475
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x42c]
push edx
jmp 0x406488
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
lea ecx, [esp + 0x82c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x406602
push 0x3ff
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], bl
call fcn.004338b0
add esp, 0xc
mov dword [esp + 0x1c], 0x400
call fcn.00421c2b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4064d4
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push 0x44d91a
push eax
mov dword [esp + 0xc44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406510
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405080
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], ebx
je 0x4065c9
lea ecx, [esp + 0x10]
call fcn.004054c0
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], ebx
jl 0x4065c9
push 0x44d914
push esi
call fcn.00433042
add esp, 8
cmp eax, ebx
je 0x4065c9
sub eax, esi
js 0x4065c9
cmp dword [esi - 0xc], ebx
jl 0x4065b2
push 0x44d90c
push esi
call fcn.00433042
add esp, 8
cmp eax, ebx
je 0x40657c
sub eax, esi
jns 0x4065c4
cmp dword [esi - 0xc], ebx
jl 0x4065b2
push 0x44d904
push esi
call fcn.00433042
add esp, 8
cmp eax, ebx
je 0x406597
sub eax, esi
jns 0x4065c4
cmp dword [esi - 0xc], ebx
jl 0x4065b2
push 0x44d648
push esi
call fcn.00433042
add esp, 8
cmp eax, ebx
je 0x4065b2
sub eax, esi
jns 0x4065c9
push 0x44d91a
lea ecx, [esp + 0x14]
call fcn.00404460
test eax, eax
je 0x4065c9
mov edi, 1
mov eax, dword [esp + 0x14]
mov edx, dword [esi - 0xc]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0xc2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406602
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0xc24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc10]
xor ecx, esp
call fcn.00432ccc
add esp, 0xc20
ret