Function at 0x407c80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ca45c
mov eax, dword fs:[0]
push eax
mov eax, 0x34e0
call fcn.004ade80
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x34d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x34f4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3504]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push 0x1048
lea ecx, [esp + 0x24a2]
mov dword [esp + 0x3500], edi
xor eax, eax
push edi
push ecx
mov dword [esp + 0x24], 0x825
mov word [esp + 0x24a8], ax
call fcn.004a7380
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x407f48
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push str.ProxyEnable
mov ebx, 4
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x407d65
cmp dword [esp + 0x28], ebx
je 0x407d79
cmp esi, edi
je 0x407f48
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407f48
cmp dword [esp + 0x24], 1
jne 0x407d65
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x1c]
lea esi, [esp + 0x24a0]
call fcn.00406020
test eax, eax
jne 0x407f3f
mov ebx, esi
lea esi, [esp + 0x14]
call fcn.00406960
mov byte [esp + 0x34fc], 1
mov esi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esi - 8], ebx
jle 0x407eda
push 0x3d
push esi
call fcn.004a5d20
add esp, 8
cmp eax, ebx
je 0x407eda
sub eax, esi
sar eax, 1
cmp eax, ebx
jle 0x407eda
cmp dword [esi - 8], ebx
jl 0x407f2f
push 0x4ef448
push esi
call fcn.004a63c2
add esp, 8
cmp eax, ebx
je 0x407f2f
sub eax, esi
sar eax, 1
js 0x407f2f
lea edx, [eax + 5]
lea esi, [esp + 0x18]
lea eax, [esp + 0x14]
call fcn.00406a30
mov edi, eax
lea eax, [esp + 0x14]
mov byte [esp + 0x34fc], 2
call fcn.004069c0
mov byte [esp + 0x34fc], 1
call fcn.00402670
lea ecx, [ebx + 0x3b]
lea esi, [esp + 0x14]
call fcn.00406a10
cmp eax, ebx
jl 0x407e7a
lea ecx, [esp + 0x18]
push ecx
mov edx, esi
push edx
mov ecx, eax
xor edx, edx
call fcn.00406a50
mov edi, eax
mov eax, esi
mov byte [esp + 0x34fc], 3
call fcn.004069c0
lea esi, [esp + 0x18]
mov byte [esp + 0x34fc], 1
call fcn.00402670
lea eax, [esp + 0x2c]
call fcn.004068a0
mov ecx, 2
lea eax, [esp + 0x2c]
call fcn.004061d0
lea eax, [esp + 0x2c]
call fcn.004068a0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
call fcn.004063e0
cmp eax, ebx
je 0x407f2f
cmp dword [esp + 0x247c], 0xffffffff
lea eax, [ebp + 4]
jne 0x407f1b
lea edi, [esp + 0x2c]
call fcn.00402710
lea eax, [esp + 0x6e]
push eax
call fcn.004a58af
movsx ecx, ax
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x407f2f
lea eax, [esp + 0x2c]
call fcn.004068a0
mov ecx, 2
lea eax, [esp + 0x2c]
call fcn.004061d0
lea eax, [esp + 0x2c]
call fcn.004068a0
lea ecx, [esp + 0x249c]
lea edx, [esp + 0x2c]
call fcn.004063e0
cmp eax, ebx
je 0x407f2f
cmp dword [esp + 0x247c], 0xffffffff
lea eax, [ebp + 4]
je 0x407ebc
lea edi, [esp + 0x6e]
call fcn.00402710
movzx edx, word [esp + 0x2478]
mov dword [ebp + 8], edx
lea esi, [esp + 0x14]
mov byte [esp + 0x34fc], bl
call fcn.00402670
lea ecx, [esp + 0x1c]
call fcn.00402a00
mov ecx, dword [esp + 0x34f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34d8]
xor ecx, esp
call fcn.004a4a25
add esp, 0x34ec
ret 4