Function at 0x40cb40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8bc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x66c
push esi
push edi
mov edi, ecx
mov esi, 0x20019
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x1c], 0
call fcn.0040b6a0
test eax, eax
mov dword [ebp - 0x14], 0xb1b4b18a
mov ecx, 0x20119
mov dword [ebp - 0x10], 0xb1a8b0
cmovne esi, ecx
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0x14]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 7
jb 0x40cb93
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cbc3
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402aa0
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x527740]
movups xmmword [ebp - 0x97], xmm0
mov dword [ebp - 0x2c], 0
movaps xmm0, xmmword [0x526f00]
movups xmmword [ebp - 0x87], xmm0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x97]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x97], al
inc ecx
cmp ecx, 0x1f
jb 0x40cc10
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
lea eax, [ebp - 0x97]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ccd3
mov dword [ebp - 0x24], 0x20019
xor ecx, ecx
mov dword [ebp - 0x28], 0x400
mov dword [ebp - 0x18], 0xb7bcbe92
mov dword [ebp - 0x14], 0x98bab1b6
mov dword [ebp - 0x10], 0xbbb6aa
movzx eax, byte [ebp + ecx - 0x18]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 0xb
jb 0x40cc71
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ccca
lea ecx, [ebp - 0x678]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ccb1
sub ecx, edx
lea eax, [ebp - 0x678]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0045fba0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0xb1b4b18a
xor ecx, ecx
mov dword [ebp - 0x10], 0xb1a8b0
movzx eax, byte [ebp + ecx - 0x14]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 7
jb 0x40cce3
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x74], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cd13
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00402aa0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1a8]
push 0x7c
push 0
push eax
call fcn.004d31f0
add esp, 0xc
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x40cd79
lea ecx, [ebp - 0x1a4]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cd60
sub ecx, edx
lea eax, [ebp - 0x1a4]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.0045fba0
lea ecx, [ebp - 0x90]
call fcn.0040c5e0
mov esi, eax
mov byte [ebp - 4], 3
push 0xffffffffffffff80
mov byte [ebp - 0x21], 0
call fcn.00461130
lea ecx, [ebp - 0x12c]
mov byte [ebp - 0x22], al
call fcn.0040c540
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov al, byte [ebp - 0x22]
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x26], al
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1e]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cdc5
sub ecx, edx
mov eax, closesocket
mov edx, dword [ebp - 0x34]
sub eax, edx
cmp eax, ecx
jb 0x40d091
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push ecx
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x1e]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0xe4]
call fcn.004680d0
mov dword [ebp - 0x1c], 2
mov byte [ebp - 4], 6
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
lea ecx, [ebp - 0xe4]
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
push eax
call fcn.004623f0
mov dword [ebp - 0x4c], 0
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x114]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 6
movups xmmword [ebp - 0x5c], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x26]
push eax
call fcn.004641d0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xcc]
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x10]
call fcn.00467f00
lea eax, [ebp - 0x22]
mov dword [ebp - 0x1c], 0xe
push eax
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0xfc]
call fcn.004641d0
mov byte [ebp - 4], 9
mov edx, eax
push esi
lea ecx, [ebp - 0xb4]
call fcn.00464440
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xfc]
call fcn.00402890
mov esi, 0xe
mov dword [ebp - 0x1c], esi
and esi, 0xfffffff7
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xcc]
call fcn.00402890
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x114]
call fcn.00402890
and esi, 0xfffffffb
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x40cf39
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d096
push ecx
push edx
call fcn.004bafb1
add esp, 8
and esi, 0xfffffffd
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xe4]
call fcn.00402890
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x12c]
call fcn.00402890
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x90]
call fcn.00402890
xorps xmm0, xmm0
mov byte [ebp - 0x78], 0
lea ecx, [ebp - 0x278]
movups xmmword [ebp - 0x98], xmm0
movups xmmword [ebp - 0x88], xmm0
call fcn.0047d210
cmp dword [ebp - 0xa0], 0x10
lea eax, [ebp - 0xb4]
push dword [ebp - 0xa4]
cmovae eax, dword [ebp - 0xb4]
push eax
call fcn.0047d220
push ecx
lea ecx, [ebp - 0x278]
call fcn.0047d2f0
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x278]
call fcn.0047d3c0
xorps xmm0, xmm0
lea ecx, [ebp - 0x98]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d000
sub ecx, edx
lea eax, [ebp - 0x98]
push ecx
push eax
mov ecx, edi
call fcn.00402aa0
or esi, 1
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4]
call fcn.00402890
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00402890
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40d06d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d063
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d09b
push ecx
push edx
call fcn.004bafb1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00402210
call fcn.004d64b0
call fcn.004d64b0
int3