Function at 0x40c100
Capabilities:
Get proxy

Disassembly:
push 0xffffffffffffffff
push 0x446b50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
call fcn.0041623a
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c143
push 0x80004005
call fcn.00403720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], ebx
call fcn.00404020
mov ebp, eax
mov dword [esp + 0x20], vtable.CRegistryEx.0
call fcn.0041623a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c180
push 0x80004005
call fcn.00403720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], reloc.OLEAUT32.dll_SysReAllocString
push 0x3b
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], 1
call fcn.00403df0
lea ecx, [esp + 0x30]
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
jne 0x40c3ef
mov edi, dword [esp + 0x4c]
push str.AutoConfigURL
lea esi, [esp + 0x24]
call fcn.0040c610
test eax, eax
je 0x40c2ad
mov edx, edi
mov eax, dword [edx]
push eax
push str.AutoConfigURL
lea ecx, [esp + 0x20]
push str.PROXY_REG:__s__s
push ecx
call fcn.00403d50
mov edi, dword [esp + 0x28]
add esp, 0xc
add edi, 0xfffffff0
mov dword [esp + 0x50], esp
mov esi, esp
push edi
call fcn.00403f60
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00404170
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40c24b
push eax
call esi
xor eax, eax
mov dword [esp + 0x30], eax
cmp eax, ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x20], vtable.CRegistryEx.0
je 0x40c262
push eax
call esi
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c282
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c2a3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 3
jmp 0x40c48b
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x24]
mov dword [esp + 0x20], ebx
call fcn.0040c5b0
test eax, eax
je 0x40c3a4
mov esi, dword [esp + 0x1c]
push esi
push str.ProxyEnable
lea ecx, [esp + 0x20]
push str.PROXY_REG:__s__d
push ecx
call fcn.00403d50
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push eax
call fcn.00403f60
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.00404170
cmp esi, ebx
je 0x40c3a4
mov edi, dword [esp + 0x4c]
push str.ProxyServer
lea esi, [esp + 0x24]
call fcn.0040c610
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40c332
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebx
mov edx, edi
mov eax, dword [edx]
push eax
push str.ProxyServer
lea ecx, [esp + 0x20]
push str.PROXY_REG:__s__s
push ecx
call fcn.00403d50
mov esi, dword [esp + 0x28]
add esp, 0xc
add esi, 0xfffffff0
mov dword [esp + 0x50], esp
mov edi, esp
push esi
call fcn.00403f60
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.00404170
lea ecx, [esp + 0x20]
call fcn.0040c510
mov dword [esp + 0x44], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40c39a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, 2
jmp 0x40c48b
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40c3b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x20]
call fcn.0040c510
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40c48b
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
lea ecx, [esp + 0x1c]
push str._ERROR__PROXY_REG:__s_not_found
push ecx
call fcn.00403d50
mov esi, dword [esp + 0x24]
add esp, 8
add esi, 0xfffffff0
mov dword [esp + 0x50], esp
mov edi, esp
push esi
call fcn.00403f60
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.00404170
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x20], vtable.CRegistryEx.0
je 0x40c447
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c467
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c488
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
or eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4