Function at 0x4a89a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5060e5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4c8
mov eax, dword [0x583a1c]
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, edx
mov dword [ebp - 0x488], esi
mov edi, ecx
mov dword [ebp - 0x48c], edi
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x4a0]
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x480], 0x30fce3bb
mov dword [ebp - 0x47c], 0x2d409dd5
mov dword [ebp - 0x484], eax
mov eax, dword [ebp - 0x480]
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x480], 0x7b5c513c
mov dword [ebp - 0x47c], 0x6ab301d7
mov eax, dword [ebp - 0x480]
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x494], ecx
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x480], 0x438f82eb
mov dword [ebp - 0x47c], 0x4932f2a2
mov eax, dword [ebp - 0x480]
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x480], 0x7b5c513c
mov dword [ebp - 0x4d0], eax
mov dword [ebp - 0x4cc], ecx
mov dword [ebp - 0x47c], 0x6ab301d7
mov eax, dword [ebp - 0x480]
mov ecx, dword [ebp - 0x47c]
movaps xmm1, xmmword [ebp - 0x4a0]
mov dword [ebp - 0x4c4], ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x4c8], eax
xorps xmm1, xmmword [ebp - 0x4d0]
movaps xmmword [ebp - 0x4a0], xmm1
mov al, byte [edx]
inc edx
test al, al
jne 0x4a8ad2
sub edx, ecx
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4a8ae5
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x4a0]
push eax
push 0
call fcn.0043d6e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a8b26
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4a8b09
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 1
push 0x573244
push 0
call fcn.0043d6e0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4a8b26
mov al, 1
jmp 0x4a8b28
xor al, al
test al, al
je 0x4a8fcc
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x474], 1
mov eax, edi
cmp dword [edi + 0x14], 0x10
movups xmmword [ebp - 0x430], xmm0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x470], 0x400
mov dword [ebp - 0x468], 0xf003f
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], 0
jb 0x4a8ba2
mov eax, dword [edi]
lea ecx, [ebp - 0x46c]
push ecx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a8c7f
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4a8bce
mov eax, dword [esi]
lea ecx, [ebp - 0x470]
push ecx
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x468]
push ecx
push 0
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a8c7f
push dword [ebp - 0x470]
mov dword [ebp - 0x4a8], eax
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 0x4a4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x418]
push eax
movups xmmword [ebp - 0x4b8], xmm0
call fcn.004319c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.0043a450
movups xmm0, xmmword [ebp - 0x4b8]
mov byte [ebp - 0x4b8], 0
movups xmmword [ebp - 0x430], xmm0
movq xmm0, qword [ebp - 0x4a8]
movq qword [ebp - 0x420], xmm0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 0xf
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4b8]
call fcn.0043a450
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x4a8c90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x420], 0
je 0x4a8fac
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
movups xmmword [ebp - 0x464], xmm0
cmp eax, 1
jb 0x4a90ab
dec eax
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x41c], 0x10
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
push ecx
inc eax
lea ecx, [ebp - 0x464]
push eax
call fcn.004319c0
mov dword [ebp - 0x474], 3
mov byte [ebp - 4], 3
lea edx, [ebp - 0x464]
cmp dword [ebp - 0x450], 0x10
mov eax, dword [ebp - 0x454]
cmovae edx, dword [ebp - 0x464]
mov byte [ebp - 4], 4
push ecx
push eax
lea ecx, [ebp - 0x44c]
call fcn.00441da0
mov eax, 0xb
mov dword [ebp - 0x474], 0xb
mov dword [ebp - 0x474], eax
add esp, 8
and eax, 0xfffffff7
mov dword [ebp - 0x474], eax
mov dword [ebp - 4], 3
or eax, 4
mov dword [ebp - 0x474], eax
and eax, 0xfffffffd
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x464]
call fcn.0043a450
cmp byte [ebp - 0x434], 0
jne 0x4a8e0c
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x430]
dec ecx
cmp dword [ebp - 0x41c], 0x10
mov dword [ebp - 0x420], ecx
cmovae eax, dword [ebp - 0x430]
mov byte [eax + ecx], 0
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4a8db9
mov esi, dword [esi]
push eax
mov eax, dword [ebp - 0x484]
add eax, 0x10
push esi
push eax
call fcn.004aa590
add esp, 0xc
push 0x572650
push eax
call fcn.004a4340
cmp dword [ebp - 0x41c], 0x10
lea ecx, [ebp - 0x430]
push dword [ebp - 0x420]
cmovae ecx, dword [ebp - 0x430]
push ecx
push eax
call fcn.004aa590
add esp, 0x14
push 0x57324c
push eax
call fcn.004a4340
jmp 0x4a8f56
mov edi, dword [ebp - 0x438]
lea eax, [ebp - 0x44c]
mov edx, dword [ebp - 0x44c]
lea esi, [ebp - 0x44c]
cmp edi, 0x10
push 0
cmovae eax, edx
add eax, dword [ebp - 0x43c]
cmp edi, 0x10
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x44c]
cmovae esi, edx
add esi, dword [ebp - 0x43c]
cmp edi, 0x10
push esi
cmovae eax, edx
push eax
call fcn.004f93d0
mov edi, eax
cmp eax, esi
je 0x4a8e70
inc eax
cmp eax, esi
je 0x4a8e70
mov cl, byte [eax]
test cl, cl
je 0x4a8e6b
mov byte [edi], cl
inc edi
inc eax
cmp eax, esi
jne 0x4a8e62
cmp dword [ebp - 0x438], 0x10
lea eax, [ebp - 0x44c]
mov esi, edi
cmovae eax, dword [ebp - 0x44c]
sub dword [ebp - 0x46c], edi
sub esi, eax
mov edi, dword [ebp - 0x43c]
mov eax, edi
mov edx, dword [ebp - 0x46c]
sub eax, esi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x438], 0x10
mov dword [ebp - 0x46c], edx
lea edx, [ebp - 0x44c]
cmovae edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x46c]
add edx, esi
sub edi, eax
add eax, edx
mov ecx, edi
sub ecx, esi
inc ecx
push ecx
push eax
push edx
call fcn.004e5600
mov eax, dword [ebp - 0x488]
add esp, 0xc
mov dword [ebp - 0x43c], edi
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4a8ef0
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [ebp - 0x484]
add eax, 0x10
push eax
call fcn.004aa590
add esp, 0xc
push 0x572650
push eax
call fcn.004a4340
add esp, 8
mov ecx, eax
cmp byte [ebp - 0x434], 0
je 0x4a90b0
cmp dword [ebp - 0x438], 0x10
lea eax, [ebp - 0x44c]
push dword [ebp - 0x43c]
cmovae eax, dword [ebp - 0x44c]
push eax
push ecx
call fcn.004aa590
add esp, 0xc
push 0x57324c
push eax
call fcn.004a4340
mov edi, dword [ebp - 0x48c]
mov ecx, dword [edi + 0x10]
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x4a8f64
mov edi, dword [edi]
push ecx
push edi
push eax
call fcn.004aa590
add esp, 0xc
push 0x573248
push eax
call fcn.004a4340
push eax
call fcn.004a45b0
mov esi, dword [ebp - 0x474]
add esp, 0xc
and esi, 0xfffffffb
mov dword [ebp - 0x474], esi
mov byte [ebp - 4], 0
cmp byte [ebp - 0x434], 0
je 0x4a8fb1
lea ecx, [ebp - 0x44c]
call fcn.0043a450
jmp 0x4a8fb1
mov esi, 1
and esi, 0xfffffffe
mov dword [ebp - 0x474], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
jmp 0x4a9088
push esi
push edi
mov edx, closesocket
lea ecx, [ebp - 0x464]
call fcn.004b36b0
add esp, 8
mov dword [ebp - 4], 0xc
cmp dword [ebp - 0x454], 0
je 0x4a907b
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4a9000
mov esi, dword [esi]
push eax
mov eax, dword [ebp - 0x484]
add eax, 0x10
push esi
push eax
call fcn.004aa590
add esp, 0xc
push 0x572650
push eax
call fcn.004a4340
cmp dword [ebp - 0x450], 0x10
lea ecx, [ebp - 0x464]
push dword [ebp - 0x454]
cmovae ecx, dword [ebp - 0x464]
push ecx
push eax
call fcn.004aa590
add esp, 0x14
push 0x57324c
push eax
call fcn.004a4340
mov ecx, dword [edi + 0x10]
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x4a905c
mov edi, dword [edi]
push ecx
push edi
push eax
call fcn.004aa590
add esp, 0xc
push 0x573248
push eax
call fcn.004a4340
push eax
call fcn.004a45b0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x464]
call fcn.0043a450
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.004e3bc5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0043a6d0
call fcn.0042e320
int3