Function at 0x45e25f
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 0x45e27f
push 6
call fcn.00458df3
pop ecx
xor al, al
jmp 0x45e49c
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.00428d6d
mov esi, dword [ebp + 8]
cmp byte [ebp - 8], bl
jne 0x45e2be
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 0x45e2f4
push ebx
lea eax, [ebp - 0x18]
push eax
push closesocket
push esi
call fcn.00459aa5
add esp, 0x10
lea ecx, [ebp - 4]
cmp dword [ebp - 0x18], ebx
mov eax, 0x49cb74
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 0x45e491
sub eax, ebx
je 0x45e3da
dec eax
sub eax, 1
je 0x45e323
sub eax, 0xe8
je 0x45e33a
sub eax, 0x308
jne 0x45e491
test byte [ebp + 0x10], 2
je 0x45e491
push esi
mov ecx, edi
call fcn.0045dc57
jmp 0x45e491
mov esi, dword [ebp + 0xc]
mov ecx, esi
cmp byte [ebp - 8], bl
je 0x45e34b
call fcn.0046b4a5
jmp 0x45e350
call fcn.0046b42a
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], ebx
jg 0x45e35f
mov bl, 1
jmp 0x45e491
push dword [ebp - 4]
mov ecx, eax
call fcn.00423f51
test eax, eax
jne 0x45e37a
push 0xe
call fcn.00458df3
pop ecx
jmp 0x45e491
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, 0x49cb70
cmp byte [ebp - 8], bl
jne 0x45e3a3
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 0x45e3c5
test ecx, ecx
lea edx, [ebp - 4]
push edx
cmovne eax, ecx
cmp dword [ebp - 0x18], ebx
push eax
push ebx
mov ecx, 0x49cb74
cmovne ecx, dword [ebp - 0x18]
push ebx
push ecx
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45e457
mov ecx, dword [ebp + 0xc]
call fcn.004266a4
jmp 0x45e491
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45e491
cmp eax, 3
jbe 0x45e42c
cmp eax, 4
je 0x45e418
cmp eax, 7
je 0x45e42c
cmp eax, 0xb
jne 0x45e491
cmp ecx, 8
jne 0x45e491
push dword [ebp - 0x38]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x3c]
call fcn.0046b3bf
jmp 0x45e457
cmp ecx, 4
jne 0x45e491
push dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046b3e1
jmp 0x45e457
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 8], bl
je 0x45e44b
mov ecx, esi
call fcn.0046b4a5
push dword [ebp - 4]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0042f9a7
jmp 0x45e457
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0046b402
cmp dword [ebp - 0xc], 1
je 0x45e463
cmp dword [ebp - 0xc], 2
jne 0x45e48e
test dword [ebp + 0x10], 0x2000
jne 0x45e48e
mov ecx, esi
call fcn.0046b17f
mov ecx, eax
cmp byte [ebp - 8], bl
je 0x45e488
push 2
push 0x4b3d88
call fcn.00427075
jmp 0x45e48e
push ebx
call fcn.00427053
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.004266a4
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 0xc