Function at 0x4a8f70
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x569869
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x668038]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004c4c60
xor ebx, ebx
mov dword [esp + 0x2a8], ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x614414
call fcn.004c44e0
add esp, 8
test al, al
je 0x4a9028
push 0x608f74
lea eax, [esp + 0x44]
call fcn.00499510
mov esi, 2
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], 1
call fcn.0049c180
mov byte [esp + 0x2a8], 1
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004a9a00
mov dword [edi + 0x34], eax
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x58]
call fcn.0049c2c0
jmp 0x4a902d
mov esi, 2
lea ecx, [esp + 0x1c]
push ecx
push 0x61441c
call fcn.004c44e0
add esp, 8
test al, al
je 0x4a907f
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], esi
call fcn.0049c180
mov byte [esp + 0x2a8], 2
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004a9a00
mov dword [edi + 0x38], eax
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x58]
call fcn.0049c2c0
lea ecx, [esp + 0x1c]
push ecx
push 0x614424
call fcn.004c44e0
add esp, 8
test al, al
je 0x4a90c6
lea ecx, [esp + 0x58]
call fcn.0049c180
mov byte [esp + 0x2a8], 3
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004a9a00
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x58]
call fcn.0049c2c0
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4a90fd
mov dword [esp + 0x2a8], 0xffffffff
lea edx, [esp + 0x1c]
push edx
call fcn.004c4cf0
xor al, al
jmp 0x4a91e2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xa0]
push edx
push ebx
push eax
mov dword [esp + 0x38], 0x105
xor esi, esi
call ebp
cmp eax, ebx
jne 0x4a91bc
cmp dword [esp + 0x18], 1
jbe 0x4a918e
cmp word [esp + 0x8c], 0x2e
jne 0x4a918e
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.004c44e0
add esp, 8
test al, al
je 0x4a918e
lea ecx, [esp + 0x58]
call fcn.0049c180
mov byte [esp + 0x2a8], 4
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.004a9a00
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x58]
call fcn.0049c2c0
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa0]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x38], 0x105
call ebp
cmp eax, ebx
je 0x4a9132
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2a8], 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
call fcn.004c4cf0
mov al, 1
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.0054eee2
add esp, 0x29c
ret