Function at 0x4a4280
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x563319
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x660038]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004bfff0
xor ebx, ebx
mov dword [esp + 0x2a8], ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x60dff4
call fcn.004bf6d0
add esp, 8
test al, al
je 0x4a4338
push 0x602bbc
lea eax, [esp + 0x44]
call fcn.00494c30
mov esi, 2
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], 1
call fcn.004977b0
mov byte [esp + 0x2a8], 1
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004a4d10
mov dword [edi + 0x34], eax
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x58]
call fcn.004978f0
jmp 0x4a433d
mov esi, 2
lea ecx, [esp + 0x1c]
push ecx
push 0x60dffc
call fcn.004bf6d0
add esp, 8
test al, al
je 0x4a438f
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], esi
call fcn.004977b0
mov byte [esp + 0x2a8], 2
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004a4d10
mov dword [edi + 0x38], eax
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x58]
call fcn.004978f0
lea ecx, [esp + 0x1c]
push ecx
push 0x60e004
call fcn.004bf6d0
add esp, 8
test al, al
je 0x4a43d6
lea ecx, [esp + 0x58]
call fcn.004977b0
mov byte [esp + 0x2a8], 3
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004a4d10
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x58]
call fcn.004978f0
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 0x4a440d
mov dword [esp + 0x2a8], 0xffffffff
lea edx, [esp + 0x1c]
push edx
call fcn.004c0080
xor al, al
jmp 0x4a44f2
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 0x4a44cc
cmp dword [esp + 0x18], 1
jbe 0x4a449e
cmp word [esp + 0x8c], 0x2e
jne 0x4a449e
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.004bf6d0
add esp, 8
test al, al
je 0x4a449e
lea ecx, [esp + 0x58]
call fcn.004977b0
mov byte [esp + 0x2a8], 4
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.004a4d10
mov byte [esp + 0x2a8], bl
lea ecx, [esp + 0x58]
call fcn.004978f0
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 0x4a4442
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.004c0080
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.0054904e
add esp, 0x29c
ret