Function at 0x40ba60
Capabilities:
Query or enumerate registry key

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 0x55e2e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x48], ecx
jb 0x40bab1
mov esi, dword [esi]
xor edi, edi
mov edx, 7
xor eax, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edx
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
movzx eax, word [esi]
test ax, ax
je 0x40bb1f
mov ecx, eax
cmp cx, 0x5c
je 0x40bb1f
cmp edi, edx
jae 0x40baf8
lea eax, [edi + 1]
cmp edx, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov word [eax + edi*2], cx
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
jmp 0x40bb09
push ecx
mov byte [ebp - 0x4c], 0
push dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040a3c0
movzx eax, word [esi + 2]
add esi, 2
mov edi, dword [ebp - 0x24]
mov ecx, eax
test ax, ax
je 0x40bb1f
mov edx, dword [ebp - 0x20]
jmp 0x40bad1
mov eax, dword [0x5ba984]
add esi, 2
mov ecx, dword [0x5ba988]
mov dword [ebp - 0x4c], eax
sub ecx, eax
mov eax, 0x2aaaaaab
mov dword [ebp - 0x58], esi
imul ecx
mov dword [ebp - 0x50], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x54], eax
je 0x40bbaf
mov eax, dword [0x5ba984]
mov edx, dword [ebp - 0x54]
nop word [eax + eax]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40bb6a
mov ecx, dword [eax]
cmp dword [ebp - 0x20], 8
lea esi, [ebp - 0x34]
cmovae esi, dword [ebp - 0x34]
cmp edi, dword [eax + 0x10]
jne 0x40bb9b
mov edx, edi
test edx, edx
je 0x40bbac
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40bb95
add ecx, 2
sub edx, 1
jne 0x40bb82
jmp 0x40bbac
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
add eax, 0x18
inc ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
cmp ecx, edx
jne 0x40bb60
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
je 0x40bdc3
mov ecx, dword [eax*4 + 0x58aadc]
mov edi, 0x109
cmp dword [ebp - 0x5c], 0
mov eax, 0x209
mov dword [ebp - 0x58], ecx
cmove edi, eax
lea eax, [ebp - 0x44]
push eax
mov eax, edi
or eax, 0x20000
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40bc11
lea eax, [ebp - 0x44]
or edi, 0x20019
push eax
push edi
push 0
push esi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40bdc6
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x40]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x40], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052ade6
mov ecx, dword [ebp - 0x40]
xor esi, esi
add esp, 4
mov dword [ebp - 0x18], ecx
mov edi, eax
cmp dword [ebp - 0x1c], esi
jbe 0x40bd4c
nop dword [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x40bdb6
mov ecx, edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bcb0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x74]
call fcn.00410900
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 1
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x40bcfa
movups xmm0, xmmword [ebp - 0x74]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ecx + 4], 0x18
mov word [ebp - 0x74], ax
jmp 0x40bd07
lea edx, [ebp - 0x74]
push edx
push eax
call fcn.0040dfd0
mov edx, dword [ebp - 0x60]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40bd42
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40be1c
push edx
push ecx
call fcn.00497d51
add esp, 8
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x40bc70
test edi, edi
je 0x40bd59
push edi
call fcn.0052ade1
add esp, 4
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40bdc3
mov eax, dword [ebp - 0x48]
xor edi, edi
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40bdb2
xor esi, esi
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
add ecx, esi
call fcn.0040b790
mov eax, dword [ebp - 0x48]
inc edi
add esi, 0x18
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jne 0x40bd85
xor esi, esi
jmp 0x40bdc6
test edi, edi
je 0x40bdc3
push edi
call fcn.0052ade1
add esp, 4
or esi, 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x40bdfc
mov edx, dword [ebp - 0x34]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bdf2
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40be1c
push ecx
push edx
call fcn.00497d51
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.00497d40
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00524a29
int3