Function at 0x410550
Capabilities:
Query or enumerate registry value

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 0x444d00
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x248], esi
xorps xmm0, xmm0
mov dword [ebp - 0x248], esi
xor eax, eax
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x240]
push eax
push 0x20119
push 0
push 0x4503f8
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4106a6
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x208
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push str.MachineGuid
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41069a
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410630
mov eax, dword [ebp - 0x228]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x410681
cmp eax, 7
mov dword [ebp - 0x22c], ecx
lea esi, [ecx + ecx]
push esi
lea eax, [ebp - 0x220]
lea edi, [ebp - 0x23c]
cmova edi, dword [ebp - 0x23c]
push eax
push edi
call fcn.00424b80
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov esi, dword [ebp - 0x244]
jmp 0x41069a
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x23c]
call fcn.004108f0
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x23c]
cmp eax, 7
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x23c]
lea edi, [ebp - 0x23c]
cmova ecx, eax
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x22c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + eax*2]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x248]
cmp eax, 7
mov dword [esi + 0x10], 0
cmova edi, ecx
mov dword [esi + 0x14], 0xf
cmp edi, edx
jne 0x410719
mov byte [esi], 0
jmp 0x41082f
sub edx, edi
sar edx, 1
mov dword [ebp - 0x224], edx
cmp edx, 0x7fffffff
ja 0x41087f
mov esi, 0xf
cmp edx, esi
jbe 0x4107d5
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x410783
mov ecx, closesocket
mov esi, closesocket
add ecx, 0x23
push ecx
call fcn.0042377c
add esp, 4
test eax, eax
je 0x410889
mov edx, dword [ebp - 0x224]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x244]
mov dword [eax], ecx
mov dword [eax + 0x14], esi
jmp 0x4107db
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4107a4
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x410884
jmp 0x410756
test eax, eax
je 0x4107c6
push eax
call fcn.0042377c
mov edx, dword [ebp - 0x224]
mov ecx, eax
mov eax, dword [ebp - 0x244]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 0x14], esi
jmp 0x4107db
mov eax, dword [ebp - 0x244]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 0x14], esi
jmp 0x4107db
mov eax, dword [ebp - 0x244]
cmp esi, 0xf
mov dword [ebp - 0x224], eax
mov esi, dword [ebp - 0x244]
jbe 0x4107f4
mov eax, dword [esi]
mov dword [ebp - 0x224], eax
mov ecx, eax
test edx, edx
je 0x410816
mov esi, edx
nop dword [eax]
mov al, byte [edi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edi, [edi + 2]
sub esi, 1
jne 0x410800
mov esi, dword [ebp - 0x244]
mov eax, dword [ebp - 0x224]
mov dword [esi + 0x10], edx
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x23c]
cmp eax, 7
jbe 0x41085f
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410855
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410889
push edx
push ecx
call fcn.004237b1
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.0042376e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401600
call fcn.00401560
call fcn.0042dc12
int3