Function at 0x45dbff
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 0x45dc1f
push 6
call fcn.00458880
pop ecx
xor al, al
jmp 0x45de3c
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.00428af1
mov esi, dword [ebp + 8]
cmp byte [ebp - 8], bl
jne 0x45dc5e
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 0x45dc94
push ebx
lea eax, [ebp - 0x18]
push eax
push closesocket
push esi
call fcn.004593dd
add esp, 0x10
lea ecx, [ebp - 4]
cmp dword [ebp - 0x18], ebx
mov eax, 0x49bb64
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 0x45de31
sub eax, ebx
je 0x45dd7a
dec eax
sub eax, 1
je 0x45dcc3
sub eax, 0xe8
je 0x45dcda
sub eax, 0x308
jne 0x45de31
test byte [ebp + 0x10], 2
je 0x45de31
push esi
mov ecx, edi
call fcn.0045d5f7
jmp 0x45de31
mov esi, dword [ebp + 0xc]
mov ecx, esi
cmp byte [ebp - 8], bl
je 0x45dceb
call fcn.0046aa17
jmp 0x45dcf0
call fcn.0046a99c
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], ebx
jg 0x45dcff
mov bl, 1
jmp 0x45de31
push dword [ebp - 4]
mov ecx, eax
call fcn.00423cd5
test eax, eax
jne 0x45dd1a
push 0xe
call fcn.00458880
pop ecx
jmp 0x45de31
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, 0x49bb60
cmp byte [ebp - 8], bl
jne 0x45dd43
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 0x45dd65
test ecx, ecx
lea edx, [ebp - 4]
push edx
cmovne eax, ecx
cmp dword [ebp - 0x18], ebx
push eax
push ebx
mov ecx, 0x49bb64
cmovne ecx, dword [ebp - 0x18]
push ebx
push ecx
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45ddf7
mov ecx, dword [ebp + 0xc]
call fcn.00426428
jmp 0x45de31
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45de31
cmp eax, 3
jbe 0x45ddcc
cmp eax, 4
je 0x45ddb8
cmp eax, 7
je 0x45ddcc
cmp eax, 0xb
jne 0x45de31
cmp ecx, 8
jne 0x45de31
push dword [ebp - 0x38]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x3c]
call fcn.0046a931
jmp 0x45ddf7
cmp ecx, 4
jne 0x45de31
push dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046a953
jmp 0x45ddf7
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 8], bl
je 0x45ddeb
mov ecx, esi
call fcn.0046aa17
push dword [ebp - 4]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0042f72b
jmp 0x45ddf7
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0046a974
cmp dword [ebp - 0xc], 1
je 0x45de03
cmp dword [ebp - 0xc], 2
jne 0x45de2e
test dword [ebp + 0x10], 0x2000
jne 0x45de2e
mov ecx, esi
call fcn.0046a6f1
mov ecx, eax
cmp byte [ebp - 8], bl
je 0x45de28
push 2
push 0x4b2d88
call fcn.00426df9
jmp 0x45de2e
push ebx
call fcn.00426dd7
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.00426428
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 0xc