Function at 0x45cd6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jne 0x45cd8a
push 6
call fcn.00457a13
pop ecx
xor al, al
jmp 0x45cf96
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
shr eax, 0xc
and eax, 0xffffff01
mov dword [ebp - 4], 0x20
push esi
mov dword [ebp - 8], eax
call fcn.004282a8
mov esi, dword [ebp + 8]
cmp byte [ebp - 8], bl
jne 0x45cdc9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x45cdff
push ebx
lea eax, [ebp - 0x18]
push eax
push closesocket
push esi
call fcn.00458548
add esp, 0x10
lea ecx, [ebp - 4]
cmp dword [ebp - 0x18], ebx
mov eax, 0x49ab64
cmovne eax, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
cmp ecx, 0x100000
ja 0x45cf8b
sub eax, ebx
je 0x45ced4
dec eax
sub eax, 1
je 0x45ce2e
sub eax, 0xe8
je 0x45ce45
sub eax, 0x308
jne 0x45cf8b
test byte [ebp + 0x10], 2
je 0x45cf8b
push esi
mov ecx, edi
call fcn.0045c762
jmp 0x45cf8b
mov esi, dword [ebp + 0xc]
mov ecx, esi
cmp byte [ebp - 8], bl
je 0x45ce56
call fcn.00469566
jmp 0x45ce5b
call fcn.004694eb
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], ebx
jg 0x45ce6a
mov bl, 1
jmp 0x45cf8b
push dword [ebp - 4]
mov ecx, eax
call fcn.004234b9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, 0x49ab60
cmp byte [ebp - 8], bl
jne 0x45ce9d
test ecx, ecx
cmovne eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 8]
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x45cebf
test ecx, ecx
lea edx, [ebp - 4]
push edx
cmovne eax, ecx
cmp dword [ebp - 0x18], ebx
push eax
push ebx
mov ecx, 0x49ab64
cmovne ecx, dword [ebp - 0x18]
push ebx
push ecx
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45cf51
mov ecx, dword [ebp + 0xc]
call fcn.00425c1b
jmp 0x45cf8b
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45cf8b
cmp eax, 3
jbe 0x45cf26
cmp eax, 4
je 0x45cf12
cmp eax, 7
je 0x45cf26
cmp eax, 0xb
jne 0x45cf8b
cmp ecx, 8
jne 0x45cf8b
push dword [ebp - 0x38]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x3c]
call fcn.00469480
jmp 0x45cf51
cmp ecx, 4
jne 0x45cf8b
push dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.004694a2
jmp 0x45cf51
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 8], bl
je 0x45cf45
mov ecx, esi
call fcn.00469566
push dword [ebp - 4]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0042ef3b
jmp 0x45cf51
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.004694c3
cmp dword [ebp - 0xc], 1
je 0x45cf5d
cmp dword [ebp - 0xc], 2
jne 0x45cf88
test dword [ebp + 0x10], 0x2000
jne 0x45cf88
mov ecx, esi
call fcn.00469240
mov ecx, eax
cmp byte [ebp - 8], bl
je 0x45cf82
push 2
push 0x4aff58
call fcn.004265ce
jmp 0x45cf88
push ebx
call fcn.004265ac
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.00425c1b
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 0xc