Function at 0x4a0c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3c7b
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x848], eax
xor eax, eax
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [edx], ax
jne 0x4a0ce2
xor ecx, ecx
jmp 0x4a0cf6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0ce7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.0049ee20
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x82c]
push eax
push 0x20119
push 0
push dword [ebp - 0x83c]
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
call esi
test eax, eax
je 0x4a0d9f
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x828]
push eax
call fcn.0049e3e0
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x4a0f4a
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.0049ef70
jmp 0x4a0f4a
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x4a0e12
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x828]
push eax
call fcn.0049e3e0
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x4a0f4a
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.0049ef70
jmp 0x4a0f4a
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x4a0e69
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
mov dword [edi + 0x14], 7
xor eax, eax
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x828]
push eax
call fcn.0049e3e0
jmp 0x4a0f3f
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push dword [ebp - 0x840]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x4a0e9f
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
jmp 0x4a0e39
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov dword [ebp - 0x844], 0x400
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push dword [ebp - 0x848]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x838]
call esi
push dword [ebp - 0x82c]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0f12
sub ecx, edx
sar ecx, 1
mov ecx, edi
jne 0x4a0f33
lea eax, [ebp - 0x828]
push eax
call fcn.0049f3e0
jmp 0x4a0f3f
lea eax, [ebp - 0x810]
push eax
call fcn.0049abb0
lea ecx, [ebp - 0x828]
call fcn.004bdbb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret