Function at 0x40a550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x42c3b1
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp + 0x50], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x74]
cmp dword [ebp + 0x70], 7
lea ecx, [ebp + 0x18]
push ecx
push 0
lea ecx, [ebp + 4]
mov dword [ebp - 4], 0
push ecx
lea eax, [ebp + 0x5c]
cmova eax, dword [ebp + 0x5c]
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40a7ef
cmp dword [ebp + 4], 1
je 0x40a5fc
push 1
lea ecx, [ebp - 0xbc]
call fcn.00403120
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 3
push str.AOLSBREG::readvalue___type___REG_SZ
push eax
call fcn.00401250
add esp, 8
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0xbc]
push eax
call fcn.004090c0
mov byte [ebp - 4], 4
jmp 0x40a82f
mov eax, dword [ebp + 0x18]
cmp eax, 1
jae 0x40a641
push 1
lea ecx, [ebp - 0xbc]
call fcn.00403120
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 5
push str.AOLSBREG::readvalue___cbData___1
push eax
call fcn.00401250
add esp, 8
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0xbc]
push eax
call fcn.004090c0
mov byte [ebp - 4], 6
jmp 0x40a82f
shr eax, 1
lea ecx, [ebp + 0x38]
push 0
push eax
call fcn.0040a140
cmp dword [ebp + 0x4c], 7
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 7
cmova ecx, dword [ebp + 0x38]
lea eax, [ebp + 0x5c]
cmp dword [ebp + 0x70], 7
push ecx
cmova eax, dword [ebp + 0x5c]
push 0
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x40a6c5
push 1
lea ecx, [ebp - 0xbc]
call fcn.00403120
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 8
push str.AOLSBREG::readvalue___RegQueryValueEx_calc_data_content_failed
push eax
call fcn.00401250
add esp, 8
mov ecx, eax
push esi
call fcn.0040a3a0
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004090c0
mov byte [ebp - 4], 9
jmp 0x40a82f
lea eax, [ebp + 0x38]
cmp edi, eax
je 0x40a7bb
cmp dword [ebp + 0x4c], 7
mov edx, eax
mov esi, dword [ebp + 0x48]
cmova edx, dword [ebp + 0x38]
mov ebx, dword [edi + 0x14]
mov dword [ebp], edx
cmp esi, ebx
ja 0x40a715
mov dword [ebp + 0x1c], edi
mov ecx, edi
cmp ebx, 7
jbe 0x40a6f6
mov ecx, dword [edi]
mov dword [ebp + 0x1c], ecx
lea eax, [esi + esi]
mov dword [edi + 0x10], esi
push eax
push edx
push ecx
call fcn.00410440
mov eax, dword [ebp + 0x1c]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x40a7bb
cmp esi, 0x7ffffffe
ja 0x40a84d
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x40a735
mov ecx, 0x7ffffffe
jmp 0x40a753
mov edx, ebx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ebx, eax
jbe 0x40a74b
mov ecx, 0x7ffffffe
jmp 0x40a753
lea eax, [edx + ebx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], ecx
push eax
push edi
call fcn.00401c20
mov ecx, dword [ebp + 0x1c]
mov dword [edi + 0x10], esi
add esi, esi
push esi
push dword [ebp]
mov dword [ebp + 0x14], eax
push eax
mov dword [edi + 0x14], ecx
call fcn.00410440
mov eax, dword [ebp + 0x14]
xor ecx, ecx
add esp, 0x14
mov word [esi + eax], cx
cmp ebx, 7
jbe 0x40a7b9
mov eax, dword [edi]
lea ebx, [ebx*2 + 2]
cmp ebx, 0x1000
jb 0x40a7ac
mov ecx, dword [eax - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a7ea
mov eax, ecx
push ebx
push eax
call fcn.0040ef62
mov eax, dword [ebp + 0x14]
add esp, 8
mov dword [edi], eax
lea ecx, [ebp + 0x38]
call fcn.00403c80
lea ecx, [ebp + 0x5c]
call fcn.00403c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x50]
xor ecx, ebp
call fcn.0040ef75
lea esp, [ebp + 0x54]
pop ebp
ret 0x1c
call fcn.00413a5f
push 1
lea ecx, [ebp - 0xbc]
call fcn.00403120
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 1
push str.AOLSBREG::readvalue___RegQueryValueEx_calc_data_size_failed
push eax
call fcn.00401250
add esp, 8
mov ecx, eax
push esi
call fcn.0040a3a0
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004090c0
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405e90
push eax
lea ecx, [ebp + 8]
call fcn.00403840
push 0x4376d8
lea eax, [ebp + 8]
push eax
call fcn.0041001e
call fcn.00405ba0
int3