Function at 0x40d770
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d8
push esi
mov ecx, 0x5104b1
call fcn.004b7c9d
movaps xmm0, xmmword [0x4e4b20]
lea eax, [ebp - 0xd]
movups xmmword [ebp - 0xb4], xmm0
lea ecx, [ebp - 0x66]
mov dword [ebp - 0x1c], 0
movaps xmm0, xmmword [0x4e4b10]
lea edx, [ebp - 0xb4]
movups xmmword [ebp - 0xa4], xmm0
push eax
movaps xmm0, xmmword [0x4e4af0]
push ecx
movups xmmword [ebp - 0x94], xmm0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x18], 0
movaps xmm0, xmmword [str._E325_11CE_BFC1_Class4D36E972NetCfgInstanceIdntrolSetControlSYSTEMCurrentCoN:]
push edx
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0x30303830
mov dword [ebp - 0x70], 0x31454232
mov dword [ebp - 0x6c], 0x38313330
mov word [ebp - 0x68], 0x7d
call fcn.00403e90
mov edx, dword [eax]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d837
push edi
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.00402fd0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.0040c4f0
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40daae
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp - 0x18]
test eax, eax
mov edx, 0x64
cmovne ecx, edx
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], esi
test ecx, ecx
je 0x40daae
nop dword [eax + eax]
push 0x104
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x14], 0
push 0
push eax
call fcn.004bad00
push 0x104
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x28], 0
push 0
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0x104
call fcn.004bad00
push esi
push str._04u
lea eax, [ebp - 0x1e0]
push 0x104
push eax
call fcn.0040cd90
add esp, 0x28
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40da8b
movaps xmm0, xmmword [0x4e4b00]
lea edx, [ebp - 0x64]
mov byte [ebp - 0x54], al
xor ecx, ecx
lea eax, [ebp - 0x53]
mov esi, ecx
mov dword [ebp - 0x30], eax
mov edi, ecx
sub eax, edx
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x34], eax
je 0x40d9ab
cmp eax, 0x7fffffff
ja 0x40daf8
push eax
lea ecx, [ebp - 0xc0]
call fcn.004029a0
mov edi, eax
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], edi
push eax
mov eax, ecx
push eax
push edi
call fcn.004ba780
mov esi, edi
add esp, 0xc
add edi, dword [ebp - 0x34]
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test esi, esi
je 0x40d9ff
sub edi, esi
cmp edi, 0x1000
jb 0x40d9f2
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40dafd
mov esi, ecx
push edi
push esi
call fcn.004b7c8f
mov al, byte [ebp - 0xd]
add esp, 8
test al, al
jne 0x40da80
mov ecx, dword [ebp + 8]
mov eax, ecx
cmp dword [ecx + 0x14], 0x10
jb 0x40da10
mov eax, dword [ecx]
lea ecx, [ebp - 0x2e4]
push ecx
push eax
call fcn.004c391f
add esp, 8
test eax, eax
jne 0x40da80
movaps xmm0, xmmword [0x4e4ad0]
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x20], 4
push ecx
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0xdc]
movups xmmword [ebp - 0xc4], xmm0
call fcn.00403e90
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.0040c4f0
test esi, esi
je 0x40da9e
push dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x18]
jae 0x40daae
mov esi, eax
jmp 0x40d8d0
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x40dab1
or esi, 0xffffffff
push dword [ebp - 0x1c]
call edi
mov ecx, dword [ebp - 0x3c]
pop edi
cmp ecx, 0x10
jb 0x40dae7
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dadd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dafd
push ecx
push edx
call fcn.004b7c8f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0040c5b0
call fcn.004bebbf
int3