Function at 0x440040
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
sub esp, 0x230
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push esi
push edi
push 0x1ff
lea eax, [esp + 0x3d]
push 0
push eax
mov byte [esp + 0x44], 0
call fcn.004add60
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x440113
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push str.ProxyEnable
push eax
call edi
test eax, eax
je 0x4400c9
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x44010d
mov edx, dword [esp + 0x18]
push edx
call fcn.004a1f7a
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push esi
call fcn.004add60
mov edx, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push str.ProxyEnable
push edx
call edi
push esi
test eax, eax
je 0x44012e
call fcn.004a4f88
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a314d
add esp, 0x230
ret
cmp byte [esi], 0
setne bl
call fcn.004a4f88
mov ecx, dword [esp + 0x18]
add esp, 4
test bl, bl
je 0x4400c6
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push str.ProxyServer
push ecx
call edi
test eax, eax
jne 0x440108
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x440113
lea eax, [esp + 0x38]
push str.http
push eax
call fcn.004a4de0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4401a0
lea ecx, [esp + 0x38]
push 0x5d54bc
push ecx
call fcn.004a4de0
add esp, 8
test eax, eax
jne 0x4401da
jmp 0x440113
push str.http
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, edi
push 0x5d2d48
push esi
call fcn.004a4de0
add esp, 8
test eax, eax
je 0x4401c4
mov byte [eax], 0
push 0x5d54bc
push esi
call fcn.004a4de0
add esp, 8
test eax, eax
je 0x440113
lea ecx, [esp + 0x38]
mov esi, ebp
mov edx, ecx
mov byte [eax], 0
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4401e7
inc eax
push eax
call fcn.004a3636
add esp, 4
cmp eax, 0xffff
ja 0x440113
mov word [ebp + 0x80], ax
movzx eax, ax
cmp dword [0x603db0], eax
jne 0x4402b3
lea esi, [esp + 0x28]
mov edi, 0x6043e0
call fcn.00437c10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea esi, [esp + 0x28]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.00437c30
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.0040aaa0
test al, al
je 0x4402b3
nop
lea esi, [esp + 0x1c]
call fcn.00445bf0
mov ecx, dword [eax]
mov eax, ebp
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x440280
test dl, dl
je 0x44027c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x440280
add eax, 2
add ecx, 2
test dl, dl
jne 0x440260
xor eax, eax
jmp 0x440285
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4402ba
lea edi, [esp + 0x30]
lea esi, [esp + 0x1c]
call fcn.0040cef0
lea esi, [esp + 0x28]
mov edi, 0x6043e0
call fcn.00437c30
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.0040aaa0
test al, al
jne 0x440250
mov al, 1
jmp 0x440115
mov dword [0x604344], 0
jmp 0x440113