Function at 0x45e5ad
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 0x45e5cd
push 6
call fcn.0045907c
pop ecx
xor al, al
jmp 0x45e7ea
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.00428cde
mov esi, dword [ebp + 8]
cmp byte [ebp - 8], bl
jne 0x45e60c
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 0x45e642
push ebx
lea eax, [ebp - 0x18]
push eax
push closesocket
push esi
call fcn.00459d2e
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 0x45e7df
sub eax, ebx
je 0x45e728
dec eax
sub eax, 1
je 0x45e671
sub eax, 0xe8
je 0x45e688
sub eax, 0x308
jne 0x45e7df
test byte [ebp + 0x10], 2
je 0x45e7df
push esi
mov ecx, edi
call fcn.0045dfa5
jmp 0x45e7df
mov esi, dword [ebp + 0xc]
mov ecx, esi
cmp byte [ebp - 8], bl
je 0x45e699
call fcn.0046b9c1
jmp 0x45e69e
call fcn.0046b946
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], ebx
jg 0x45e6ad
mov bl, 1
jmp 0x45e7df
push dword [ebp - 4]
mov ecx, eax
call fcn.00423ec2
test eax, eax
jne 0x45e6c8
push 0xe
call fcn.0045907c
pop ecx
jmp 0x45e7df
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, 0x49cb70
cmp byte [ebp - 8], bl
jne 0x45e6f1
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 0x45e713
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 0x45e7a5
mov ecx, dword [ebp + 0xc]
call fcn.00426615
jmp 0x45e7df
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45e7df
cmp eax, 3
jbe 0x45e77a
cmp eax, 4
je 0x45e766
cmp eax, 7
je 0x45e77a
cmp eax, 0xb
jne 0x45e7df
cmp ecx, 8
jne 0x45e7df
push dword [ebp - 0x38]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x3c]
call fcn.0046b8db
jmp 0x45e7a5
cmp ecx, 4
jne 0x45e7df
push dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046b8fd
jmp 0x45e7a5
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 8], bl
je 0x45e799
mov ecx, esi
call fcn.0046b9c1
push dword [ebp - 4]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0042f986
jmp 0x45e7a5
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0046b91e
cmp dword [ebp - 0xc], 1
je 0x45e7b1
cmp dword [ebp - 0xc], 2
jne 0x45e7dc
test dword [ebp + 0x10], 0x2000
jne 0x45e7dc
mov ecx, esi
call fcn.0046b69b
mov ecx, eax
cmp byte [ebp - 8], bl
je 0x45e7d6
push 2
push 0x4b3d90
call fcn.00426fe6
jmp 0x45e7dc
push ebx
call fcn.00426fc4
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.00426615
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 0xc