Function at 0x4a8220
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56007f
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5c04b4]
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 ebx, ecx
call fcn.004a8180
lea eax, [ebp - 0x438]
mov edx, 0x58a418
push 0x20019
push eax
mov ecx, reloc.WS2_32.dll_bind
call fcn.00518680
add esp, 8
test al, al
je 0x4a87c0
mov edi, dword [ebx + 0x21f8]
xor eax, eax
push 0x104
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x438]
mov dword [ebp - 0x434], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4a84c3
mov edi, dword [0x5c0058]
inc dword [ebp - 0x42c]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x218]
push str._08X
push eax
call dword [sym.imp.MSVCR120.dll_swscanf_s]
add esp, 0xc
cmp eax, 1
jne 0x4a848d
mov ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x440]
push 0x20019
push eax
lea edx, [ebp - 0x218]
call fcn.00518680
add esp, 8
test al, al
je 0x4a848d
mov esi, dword [ebp - 0x440]
lea eax, [ebp - 0x430]
push eax
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x430], 0x208
push eax
push 0
push str.Filename
push esi
call edi
test eax, eax
je 0x4a8353
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call edi
mov byte [ebp - 0x421], 0
jmp 0x4a83c8
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x4a8376
cmp eax, 2
je 0x4a8376
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xd
call edi
mov byte [ebp - 0x421], 0
jmp 0x4a83c8
cmp dword [ebp - 0x430], 0x208
jbe 0x4a8395
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7a
call edi
mov byte [ebp - 0x421], 0
jmp 0x4a83c8
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.Filename
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call edi
test esi, esi
sete byte [ebp - 0x421]
push dword [ebp - 0x440]
call dword [0x5c00ac]
push eax
call edi
cmp byte [ebp - 0x421], 0
je 0x4a8487
push dword [ebp - 0x43c]
mov ecx, ebx
call fcn.004a8130
test eax, eax
jne 0x4a8487
push 0x54
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x444], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4a8426
mov ecx, eax
call fcn.004a7890
mov esi, eax
mov dword [ebp - 0x430], eax
jmp 0x4a842e
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a8487
push 0
push 0
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
push dword [ebp - 0x43c]
call fcn.004a7950
test eax, eax
je 0x4a845f
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x4a8487
mov edi, dword [ebx + 0x21f8]
push ecx
lea ecx, [ebx + 0x21f0]
lea eax, [edi + 1]
push eax
call fcn.00433880
mov eax, dword [ebx + 0x21f4]
mov ecx, dword [ebp - 0x430]
mov dword [eax + edi*4], ecx
mov dword [ecx + 4], edi
mov edi, dword [0x5c0058]
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x42c]
push eax
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x4a82c0
mov edi, dword [ebp - 0x434]
push dword [ebp - 0x438]
call dword [0x5c00ac]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, dword [ebx + 0x21f8]
je 0x4a87c0
xor eax, eax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x42c], eax
xor edx, edx
cmp edi, 2
jl 0x4a8539
mov ecx, dword [ebx + 0x21f4]
lea edx, [edi - 2]
shr edx, 1
inc edx
xor edi, edi
lea eax, [edx + edx]
mov dword [ebp - 0x42c], eax
lea esp, [esp]
mov eax, dword [ecx]
lea ecx, [ecx + 8]
add esi, dword [eax + 0x1c]
mov eax, dword [ecx - 4]
add edi, dword [eax + 0x1c]
dec edx
jne 0x4a8510
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x428], edi
mov edi, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x428]
cmp eax, edi
jge 0x4a854f
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebx + 0x21f4]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 0x1c]
lea eax, [ecx + esi]
add edx, eax
mov dword [ebp - 0x428], edx
mov esi, edx
mov edx, dword [ebx + 0x21f8]
cmp edi, edx
jge 0x4a8582
mov eax, dword [ebx + 0x21f4]
sub edx, edi
lea ecx, [eax + edi*4]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
add esi, dword [eax + 0x1c]
dec edx
jne 0x4a8571
mov edx, dword [ebx + 0x21f8]
mov ecx, dword [ebx + 0x1db0]
lea eax, [edx - 1]
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
add esi, 0x68
test ecx, ecx
je 0x4a86e5
mov eax, dword [ecx]
push esi
call dword [eax + 0x28]
test eax, eax
jne 0x4a86e5
mov ecx, dword [ebx + 0x1db0]
test ecx, ecx
je 0x4a86e5
mov eax, dword [ecx]
push esi
push 0
call dword [eax + 0x2c]
mov esi, eax
test esi, esi
je 0x4a86e5
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4a85f9
push eax
mov eax, dword [esi + 0x10]
imul eax, edi
add eax, dword [esi + 0xc]
add eax, esi
push eax
mov eax, dword [ebx + 0x21f8]
imul eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
add eax, esi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov ecx, dword [ebx + 0x21f8]
sub ecx, edi
imul ecx, dword [esi + 0x10]
test edi, edi
jle 0x4a8618
lea eax, [esi + 0x5c]
mov edx, edi
mov edi, edi
add dword [eax], ecx
lea eax, [eax + 0x14]
dec edx
jne 0x4a8610
mov eax, dword [ebx + 0x21f8]
mov edx, dword [esi + 0x10]
imul edx, eax
add edx, dword [esi + 0xc]
add edx, dword [ebp - 0x428]
mov dword [ebp - 0x428], edi
cmp edi, eax
jge 0x4a8689
lea ecx, [edi*4 + 0x15]
add ecx, edi
lea ecx, [esi + ecx*4]
xor eax, eax
lea ecx, [ecx + 0x14]
mov dword [ecx - 0x14], eax
mov dword [ecx - 0x10], eax
mov dword [ecx - 0xc], eax
mov dword [ecx - 8], eax
mov dword [ecx - 4], eax
mov eax, dword [ebx + 0x21f4]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x10]
mov dword [ecx - 0xc], edx
mov dword [ecx - 0x14], eax
mov eax, dword [ebx + 0x21f4]
mov eax, dword [eax + edi*4]
inc edi
mov eax, dword [eax + 0x1c]
add edx, eax
mov dword [ecx - 0x10], eax
cmp edi, dword [ebx + 0x21f8]
jl 0x4a8643
mov edi, dword [ebp - 0x434]
mov eax, dword [ebx + 0x21f8]
mov dword [esi + 0x14], eax
mov ecx, dword [ebx + 0x1db0]
test ecx, ecx
je 0x4a86a1
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp edi, dword [ebx + 0x21f8]
jge 0x4a87c0
lea ecx, [ecx]
mov eax, dword [ebx + 0x21f4]
push 0
push 0
push 0
mov esi, dword [eax + edi*4]
mov ecx, esi
push 0
push 0
push 0x10004
push 0
push 0
call fcn.004a7bf0
inc edi
mov byte [esi + 0x50], 1
cmp edi, dword [ebx + 0x21f8]
jl 0x4a86b0
jmp 0x4a87c0
mov dword [ebp - 0x428], edi
cmp edi, dword [ebx + 0x21f8]
jge 0x4a8729
mov eax, dword [ebx + 0x21f4]
push 0
push 0
push 0
mov esi, dword [eax + edi*4]
mov ecx, esi
push 0
push 0
push 0x10002
push 0
push 0
call fcn.004a7bf0
inc edi
mov byte [esi + 0x24], 1
cmp edi, dword [ebx + 0x21f8]
jl 0x4a86f3
mov edi, dword [ebp - 0x434]
mov ecx, edi
mov dword [ebp - 0x428], edi
cmp edi, dword [ebx + 0x21f8]
jge 0x4a87b3
lea ecx, [ecx]
mov eax, dword [ebx + 0x21f4]
xor esi, esi
mov edi, dword [eax + ecx*4]
jmp 0x4a8750
cmp dword [edi + 0x20], 0
je 0x4a8761
call fcn.0051ed80
inc esi
cmp esi, 0x32
jl 0x4a8750
push 0
push 0
push 0
push 4
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x1388
push eax
push 0x10003
push 0
push 0
mov ecx, edi
call fcn.004a7bf0
mov ecx, dword [ebp - 0x428]
inc ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 0x428], ecx
cmp ecx, dword [ebx + 0x21f8]
jl 0x4a8740
mov edi, dword [ebp - 0x434]
push ecx
push edi
lea ecx, [ebx + 0x21f0]
call fcn.00433880
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.00553510
mov esp, ebp
pop ebp
ret