Function at 0x4a05a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a1dd
mov eax, dword fs:[0]
push eax
sub esp, 0x78
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 eax, eax
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 0x48], eax
call fcn.0045abd0
mov ecx, dword [ebp + 0xc]
call fcn.0045abd0
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x54]
mov dword [ebp - 4], esi
push eax
mov ecx, 0x5de840
call fcn.005154d0
test eax, eax
je 0x4a0b70
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ebx
test ebx, ebx
jle 0x4a0b70
mov dword [ebp - 0x34], 1
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4a0635
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.005071b0
xor esi, esi
add esp, 4
or ecx, 0xffffffff
mov dword [ebp - 0x24], esi
test ebx, ebx
jle 0x4a0b4f
test esi, esi
js 0x4a0b9f
cmp esi, dword [ebp - 0x50]
jge 0x4a0b9f
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + esi*4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4a062b
push ecx
push dword [ebp - 0x2c]
call fcn.00526fc5
xor ebx, ebx
add esp, 8
test eax, eax
sete bl
mov dword [ebp - 0x20], ebx
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4a062b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
cmp esi, dword [ebp - 0x50]
jge 0x4a0b9f
mov eax, dword [ebp - 0x54]
push dword [eax + esi*4]
lea eax, [ebp - 0x30]
push dword [0x5d67e8]
push eax
call fcn.0045acb0
add esp, 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x60]
push 0x20019
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
call fcn.0045b220
test eax, eax
jne 0x4a094e
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4a062b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], 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 - 0x28], 0x104
jge 0x4a0762
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0045b530
mov eax, dword [ebp - 0x14]
or dword [ebp - 0x18], 1
lea ecx, [ebp - 0x28]
push ecx
push eax
push dword [0x5d6944]
lea ecx, [ebp - 0x60]
call fcn.0045d730
test eax, eax
jne 0x4a0795
push 0x57da10
push dword [ebp - 0x14]
call fcn.00526fc5
add esp, 8
mov byte [ebp - 0xd], 1
test eax, eax
je 0x4a0799
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 4
test al, 1
je 0x4a07de
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00526d13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4a0b95
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x4a0b95
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2], dx
cmp byte [ebp - 0xd], 0
je 0x4a081e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4a0802
test ebx, ebx
jne 0x4a081e
push 0x580680
call fcn.0045a5f0
mov ecx, dword [ebp + 8]
jmp 0x4a0806
test ebx, ebx
jne 0x4a081e
cmp esi, dword [ebp - 0x50]
jge 0x4a0b9f
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00472540
lea ecx, [ebp - 0x14]
call fcn.0045abd0
mov eax, dword [ebp - 0x14]
mov edx, 1
mov dword [ebp - 0x28], 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4a0855
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0045b530
mov eax, dword [ebp - 0x14]
or dword [ebp - 0x18], 2
lea ecx, [ebp - 0x28]
push ecx
push eax
push dword [0x5d691c]
lea ecx, [ebp - 0x60]
call fcn.0045d730
test eax, eax
jne 0x4a0888
push 0x57da10
push dword [ebp - 0x14]
call fcn.00526fc5
add esp, 8
mov byte [ebp - 0xd], 1
test eax, eax
je 0x4a088c
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 4
test al, 2
je 0x4a08d1
and eax, 0xfffffffd
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00526d13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4a0b95
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x4a0b95
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2], dx
cmp byte [ebp - 0xd], 0
je 0x4a0911
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4a08f5
test ebx, ebx
jne 0x4a0911
push 0x580680
call fcn.0045a5f0
mov ecx, dword [ebp + 0xc]
jmp 0x4a08f9
test ebx, ebx
jne 0x4a0911
cmp esi, dword [ebp - 0x50]
jge 0x4a0b9f
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00472540
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4a0924
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a0951
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a0951
mov ebx, dword [ebp - 0x60]
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4a062b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 7
cmp esi, dword [ebp - 0x50]
jge 0x4a0b9f
mov eax, dword [ebp - 0x54]
push dword [eax + esi*4]
lea eax, [ebp - 0x28]
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
add esp, 0x10
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x6c]
push 0x20019
push esi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 8
call fcn.0045b220
test eax, eax
jne 0x4a0acb
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], 4
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [0x5d6928]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a0a4e
cmp dword [ebp - 0x3c], 4
jne 0x4a0a4e
cmp dword [ebp - 0x1c], 1
jne 0x4a0a54
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4a0a2b
cmp dword [ebp - 0x20], 0
jne 0x4a0acb
push 0x580680
call fcn.0045a5f0
jmp 0x4a0a35
cmp dword [ebp - 0x20], 0
jne 0x4a0acb
push dword [ebp - 0x24]
lea ecx, [ebp - 0x54]
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 0x4a0acb
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x40], 4
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push dword [0x5d6934]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a0acb
cmp dword [ebp - 0x44], 4
jne 0x4a0acb
cmp dword [ebp - 0x1c], 1
jne 0x4a0acb
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4a0aac
cmp dword [ebp - 0x20], 0
jne 0x4a0acb
push 0x580680
call fcn.0045a5f0
jmp 0x4a0ab2
cmp dword [ebp - 0x20], 0
jne 0x4a0acb
push dword [ebp - 0x24]
lea ecx, [ebp - 0x54]
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 - 0x6c]
test eax, eax
je 0x4a0ae0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x6c], 0
add esi, 0xfffffff0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a0b05
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4a0b17
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], 0
add edi, 0xfffffff0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a0b3c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x24]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, dword [ebp - 0x48]
jl 0x4a0660
or ecx, 0xffffffff
mov esi, dword [ebp - 0x2c]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a0b6d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x54]
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
push 0x80070057
call fcn.0045a8f0
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]