Function at 0x40a5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x42c5a1
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 0x40a85f
cmp dword [ebp + 4], 1
je 0x40a66c
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.004090e0
mov byte [ebp - 4], 4
jmp 0x40a89f
mov eax, dword [ebp + 0x18]
cmp eax, 1
jae 0x40a6b1
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.004090e0
mov byte [ebp - 4], 6
jmp 0x40a89f
shr eax, 1
lea ecx, [ebp + 0x38]
push 0
push eax
call fcn.0040a160
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 0x40a735
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.0040a410
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004090e0
mov byte [ebp - 4], 9
jmp 0x40a89f
lea eax, [ebp + 0x38]
cmp edi, eax
je 0x40a82b
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 0x40a785
mov dword [ebp + 0x1c], edi
mov ecx, edi
cmp ebx, 7
jbe 0x40a766
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.00410640
mov eax, dword [ebp + 0x1c]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x40a82b
cmp esi, 0x7ffffffe
ja 0x40a8bd
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x40a7a5
mov ecx, 0x7ffffffe
jmp 0x40a7c3
mov edx, ebx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ebx, eax
jbe 0x40a7bb
mov ecx, 0x7ffffffe
jmp 0x40a7c3
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.00410640
mov eax, dword [ebp + 0x14]
xor ecx, ecx
add esp, 0x14
mov word [esi + eax], cx
cmp ebx, 7
jbe 0x40a829
mov eax, dword [edi]
lea ebx, [ebx*2 + 2]
cmp ebx, 0x1000
jb 0x40a81c
mov ecx, dword [eax - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a85a
mov eax, ecx
push ebx
push eax
call fcn.0040effd
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.0040f010
lea esp, [ebp + 0x54]
pop ebp
ret 0x1c
call fcn.00413c5f
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.0040a410
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004090e0
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405e50
push eax
lea ecx, [ebp + 8]
call fcn.00403840
push 0x437418
lea eax, [ebp + 8]
push eax
call fcn.0041021e
call fcn.00405b60
int3