Function at 0x4c49a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d60a
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
xor esi, esi
mov dword [ebp - 0x44], ebx
call fcn.0045abd0
mov ecx, dword [ebp + 0xc]
call fcn.0045abd0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 4], esi
push eax
mov ecx, 0x5de840
call fcn.005154d0
test eax, eax
je 0x4c4f88
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edi
test edi, edi
jle 0x4c4f88
mov dword [ebp - 0x30], 1
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4c4a35
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.005071b0
xor esi, esi
add esp, 4
or ecx, 0xffffffff
mov dword [ebp - 0x20], esi
test edi, edi
jle 0x4c4f67
test esi, esi
js 0x4c4f53
cmp esi, dword [ebp - 0x4c]
jge 0x4c4f53
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + esi*4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4c4a2b
push ecx
push dword [ebp - 0x28]
call fcn.00526fc5
xor ecx, ecx
add esp, 8
test eax, eax
sete cl
mov dword [ebp - 0x18], ecx
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4c4a2b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
cmp esi, dword [ebp - 0x4c]
jge 0x4c4f53
mov eax, dword [ebp - 0x50]
push dword [eax + esi*4]
lea eax, [ebp - 0x2c]
push dword [0x5d67e8]
push eax
call fcn.0045acb0
add esp, 0xc
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push 0x20019
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
call fcn.0045b220
test eax, eax
jne 0x4c4d47
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4c4a2b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], 0x104
jge 0x4c4b62
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
or ebx, 1
push ecx
push eax
push dword [0x5d693c]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x14], ebx
call fcn.0045d730
test eax, eax
jne 0x4c4b97
push 0x57da10
push dword [ebp - 0x10]
call fcn.00526fc5
add esp, 8
test eax, eax
jne 0x4c4b97
mov bl, 1
jmp 0x4c4b99
xor bl, bl
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 4
test al, 1
je 0x4c4bde
and eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00526d13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4c4f49
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x4c4f49
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
test bl, bl
je 0x4c4c17
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c4bfb
push 1
push 0x580680
mov ecx, ebx
call fcn.0045b6e0
cmp dword [ebp - 0x18], 0
jne 0x4c4c17
push esi
lea ecx, [ebp - 0x50]
call fcn.00524020
mov ecx, ebx
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00472540
lea ecx, [ebp - 0x10]
call fcn.0045abd0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov dword [ebp - 0x24], 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4c4c4e
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x14], 2
lea ecx, [ebp - 0x24]
push ecx
push eax
push dword [0x5d6914]
lea ecx, [ebp - 0x5c]
call fcn.0045d730
test eax, eax
jne 0x4c4c81
push 0x57da10
push dword [ebp - 0x10]
call fcn.00526fc5
add esp, 8
test eax, eax
jne 0x4c4c81
mov bl, 1
jmp 0x4c4c83
xor bl, bl
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 4
test al, 2
je 0x4c4cc8
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00526d13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4c4f49
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x4c4f49
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
test bl, bl
je 0x4c4d0a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4c4cec
cmp dword [ebp - 0x18], 0
jne 0x4c4d0a
push 0x580680
call fcn.0045a5f0
mov ecx, dword [ebp + 0xc]
jmp 0x4c4cf2
cmp dword [ebp - 0x18], 0
jne 0x4c4d0a
cmp esi, dword [ebp - 0x4c]
jge 0x4c4f53
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00472540
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x4c4d1d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c4d4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c4d4a
mov ebx, dword [ebp - 0x5c]
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4c4a2b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
cmp esi, dword [ebp - 0x4c]
jge 0x4c4f53
mov eax, dword [ebp - 0x50]
push dword [eax + esi*4]
lea eax, [ebp - 0x24]
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
add esp, 0x10
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x68]
push 0x20019
push esi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 8
call fcn.0045b220
test eax, eax
jne 0x4c4ec4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push dword [0x5d6920]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c4e47
cmp dword [ebp - 0x38], 4
jne 0x4c4e47
cmp dword [ebp - 0x1c], 1
jne 0x4c4e4d
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4c4e24
cmp dword [ebp - 0x18], 0
jne 0x4c4ec4
push 0x580680
call fcn.0045a5f0
jmp 0x4c4e2e
cmp dword [ebp - 0x18], 0
jne 0x4c4ec4
push dword [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.00524020
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00472540
cmp dword [ebp - 0x1c], 1
je 0x4c4ec4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], 4
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push dword [0x5d692c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c4ec4
cmp dword [ebp - 0x40], 4
jne 0x4c4ec4
cmp dword [ebp - 0x1c], 1
jne 0x4c4ec4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4c4ea5
cmp dword [ebp - 0x18], 0
jne 0x4c4ec4
push 0x580680
call fcn.0045a5f0
jmp 0x4c4eab
cmp dword [ebp - 0x18], 0
jne 0x4c4ec4
push dword [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.00524020
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00472540
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4c4ed9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x68], 0
add esi, 0xfffffff0
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c4efe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4c4f10
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x5c], 0
add edi, 0xfffffff0
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c4f35
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
inc esi
mov dword [ebp - 0x20], esi
cmp esi, dword [ebp - 0x44]
jge 0x4c4f64
mov ebx, dword [ebp - 0x14]
jmp 0x4c4a60
push 0x80070057
call fcn.0045a8f0
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
or ecx, 0xffffffff
mov esi, dword [ebp - 0x28]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c4f85
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.004cdef0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc