Function at 0x45e084
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 0x45e0a4
push 6
call fcn.00458bb0
pop ecx
xor al, al
jmp 0x45e2c1
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.00428bf1
mov esi, dword [ebp + 8]
cmp byte [ebp - 8], bl
jne 0x45e0e3
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 0x45e119
push ebx
lea eax, [ebp - 0x18]
push eax
push closesocket
push esi
call fcn.00459862
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 0x45e2b6
sub eax, ebx
je 0x45e1ff
dec eax
sub eax, 1
je 0x45e148
sub eax, 0xe8
je 0x45e15f
sub eax, 0x308
jne 0x45e2b6
test byte [ebp + 0x10], 2
je 0x45e2b6
push esi
mov ecx, edi
call fcn.0045da7c
jmp 0x45e2b6
mov esi, dword [ebp + 0xc]
mov ecx, esi
cmp byte [ebp - 8], bl
je 0x45e170
call fcn.0046af75
jmp 0x45e175
call fcn.0046aefa
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], ebx
jg 0x45e184
mov bl, 1
jmp 0x45e2b6
push dword [ebp - 4]
mov ecx, eax
call fcn.00423dd5
test eax, eax
jne 0x45e19f
push 0xe
call fcn.00458bb0
pop ecx
jmp 0x45e2b6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, 0x49bb60
cmp byte [ebp - 8], bl
jne 0x45e1c8
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 0x45e1ea
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 0x45e27c
mov ecx, dword [ebp + 0xc]
call fcn.00426528
jmp 0x45e2b6
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45e2b6
cmp eax, 3
jbe 0x45e251
cmp eax, 4
je 0x45e23d
cmp eax, 7
je 0x45e251
cmp eax, 0xb
jne 0x45e2b6
cmp ecx, 8
jne 0x45e2b6
push dword [ebp - 0x38]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x3c]
call fcn.0046ae8f
jmp 0x45e27c
cmp ecx, 4
jne 0x45e2b6
push dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046aeb1
jmp 0x45e27c
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 8], bl
je 0x45e270
mov ecx, esi
call fcn.0046af75
push dword [ebp - 4]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0042f82b
jmp 0x45e27c
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0046aed2
cmp dword [ebp - 0xc], 1
je 0x45e288
cmp dword [ebp - 0xc], 2
jne 0x45e2b3
test dword [ebp + 0x10], 0x2000
jne 0x45e2b3
mov ecx, esi
call fcn.0046ac4f
mov ecx, eax
cmp byte [ebp - 8], bl
je 0x45e2ad
push 2
push 0x4b2d30
call fcn.00426ef9
jmp 0x45e2b3
push ebx
call fcn.00426ed7
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.00426528
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 0xc