Function at 0x49b340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x683c7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x76c12c]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push esi
push edi
mov eax, dword [0x76c12c]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
push str.Detecting_Proxy_Settings...
sub esp, 0x1c
mov ebx, ecx
mov dword [esp + 0x34], 0
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CurlUtils::GetIEProxySettings
mov dword [esp + 0x40], ebx
call fcn.00402050
mov esi, 1
mov dword [esp + 0x218], esi
push 5
mov byte [esp + 0x21c], 0
call fcn.00557cb0
add esp, 0x24
lea ecx, [esp + 0x4c]
call fcn.004031a0
lea ecx, [esp + 0x70]
call fcn.004031a0
lea ecx, [esp + 0x94]
call fcn.004031a0
lea ecx, [esp + 0xb8]
call fcn.004031a0
mov edi, 2
mov dword [esp + 0x1f8], edi
mov eax, 0x14
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
xor eax, eax
mov ecx, 5
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x138]
mov byte [esp + 0xdc], 0
mov word [esp + 0xdd], 0
mov byte [esp + 0xdf], 0
mov byte [esp + 0xd8], 0
mov byte [esp + 0xb4], 0
mov byte [esp + 0x90], 0
mov byte [esp + 0x6c], 0
mov dword [esp + 0x138], 4
mov dword [esp + 0x144], ecx
mov dword [esp + 0x150], esi
mov dword [esp + 0x15c], 3
mov dword [esp + 0x168], edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
call fcn.0040ec90
mov edx, dword [eax]
mov edx, dword [edx + 0x114]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push 0x4b
push 0
mov ecx, eax
call edx
test eax, eax
jne 0x49b4f1
push str.InternetQueryOption_Failed
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CurlUtils::GetIEProxySettings
mov byte [esp + 0x100], al
call fcn.00402050
mov byte [esp + 0x218], 3
push edi
mov byte [esp + 0x21c], 2
call fcn.00557cb0
add esp, 0x24
push ebx
lea edi, [esp + 0x50]
call fcn.0049ba60
jmp 0x49b9b8
mov eax, dword [esp + 0x154]
cmp eax, esi
jne 0x49b529
push str.No_proxy_used
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CurlUtils::GetIEProxySettings
mov byte [esp + 0x100], 0
call fcn.00402050
mov byte [esp + 0x218], 4
jmp 0x49b99c
test al, 4
je 0x49b565
push str.Proxy_by_URL_are_not_supported.
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CurlUtils::GetIEProxySettings
mov byte [esp + 0x103], 1
mov word [esp + 0x100], 0x100
call fcn.00402050
mov byte [esp + 0x218], 5
push edi
jmp 0x49b99e
test al, 8
je 0x49b5ce
push str.Automatic_proxy_discovery_are_not_supported.
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CurlUtils::GetIEProxySettings
mov byte [esp + 0x100], 0
mov word [esp + 0x102], 0x101
call fcn.00402050
mov byte [esp + 0x218], 6
push edi
mov byte [esp + 0x21c], 2
call fcn.00557cb0
add esp, 0x24
push ebx
lea edi, [esp + 0x50]
call fcn.0049ba60
mov dword [esp + 0x14], esi
mov esi, edi
mov byte [esp + 0x1f8], 0
call fcn.0049b0b0
jmp 0x49b9ee
xor edi, edi
cmp dword [esp + 0x16c], edi
je 0x49b942
push 0x7153ac
lea ecx, [esp + 0xe8]
mov byte [esp + 0x17], 0
call fcn.00402050
lea eax, [esp + 0xe4]
push eax
sub esp, 0x1c
mov byte [esp + 0x218], 7
mov edx, dword [esp + 0x18c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00402050
lea eax, [esp + 0x40]
mov byte [esp + 0x218], 8
push eax
mov byte [esp + 0x21c], 7
call fcn.00564450
add esp, 0x24
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1f8], 0xa
call fcn.00401750
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], edi
je 0x49b931
mov dword [esp + 0x14], edi
push 0x7153b0
lea ecx, [esp + 0x178]
call fcn.00402050
push str.https
lea ecx, [esp + 0x194]
mov byte [esp + 0x1fc], 0xb
call fcn.00402050
push str.ftp
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x1fc], 0xc
call fcn.00402050
push str.socks
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x1fc], 0xd
call fcn.00402050
mov byte [esp + 0x1f8], 0xe
mov ebx, dword [esp + 0x14]
xor edi, edi
xor esi, esi
add ebx, dword [esp + 0x20]
lea eax, [esi*8]
sub eax, esi
cmp dword [esp + eax*4 + 0x188], 8
mov ecx, dword [esp + eax*4 + 0x184]
lea eax, [esp + eax*4 + 0x174]
jb 0x49b706
mov eax, dword [eax]
push ecx
push 0
push eax
mov ecx, ebx
call fcn.00409980
cmp eax, 0xffffffff
je case.default.0x49b71b
cmp esi, 3
ja case.default.0x49b71b
jmp dword [esi*4 + 0x49ba14]
lea edi, [esp + 0x4c]
jmp case.default.0x49b71b
lea edi, [esp + 0x70]
jmp case.default.0x49b71b
lea edi, [esp + 0x94]
jmp case.default.0x49b71b
lea edi, [esp + 0xb8]
inc esi
cmp esi, 4
jl 0x49b6e3
test edi, edi
jne 0x49b751
lea edi, [esp + 0x4c]
mov byte [esp + 0x13], 1
push 0x7153e8
lea ecx, [esp + 0x104]
call fcn.00402050
mov byte [esp + 0x1f8], 0xf
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x20]
lea ecx, [esp + 0x100]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00403170
lea ecx, [esp + 0x104]
mov byte [esp + 0x218], 0x10
push ecx
mov byte [esp + 0x21c], 0xf
call fcn.00564450
add esp, 0x24
lea ecx, [esp + 0x100]
mov byte [esp + 0x1f8], 0x12
call fcn.00401750
mov ecx, dword [esp + 0xe8]
mov esi, dword [esp + 0xe4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x49b7eb
mov byte [edi + 0x20], 0
jmp 0x49b863
push 1
push 0
push 0x7153ec
mov ecx, esi
call fcn.00409980
cmp eax, 0xffffffff
jne 0x49b802
or eax, eax
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x124]
push ecx
mov ecx, esi
call fcn.004098c0
push eax
mov ecx, edi
mov byte [esp + 0x1fc], 0x13
call fcn.00401690
lea ecx, [esp + 0x11c]
mov byte [esp + 0x1f8], 0x12
call fcn.00401750
mov eax, dword [esp + 0xe4]
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x49b84b
mov eax, dword [eax]
push eax
call fcn.0058e353
mov dword [edi + 0x1c], eax
mov byte [edi + 0x20], 1
add esp, 4
mov byte [esp + 0xdc], 1
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1f8], 0xe
call fcn.00409ce0
push fcn.00401750
push 4
push 0x1c
lea edx, [esp + 0x180]
push edx
mov byte [esp + 0x208], 0xa
call fcn.0058e49c
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
add dword [esp + 0x14], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x18], esi
cmp esi, eax
jb 0x49b673
cmp byte [esp + 0x13], 0
je 0x49b928
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x7c]
call fcn.004018e0
movzx eax, byte [esp + 0x6c]
mov edx, dword [esp + 0x68]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x98], edx
mov byte [esp + 0x9c], al
call fcn.004018e0
movzx eax, byte [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xb0], edx
mov byte [esp + 0xb4], al
mov ebx, dword [esp + 0x1c]
mov esi, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x1f8], 2
call fcn.00409ce0
mov eax, dword [esp + 0x13c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x49b956
push eax
call edi
mov eax, dword [esp + 0x160]
test eax, eax
je 0x49b964
push eax
call edi
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x49b972
push eax
call edi
cmp byte [esp + 0xdc], 1
jne 0x49b9ae
push 0x7153f0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push str.CurlUtils::GetIEProxySettings
call fcn.00402050
mov byte [esp + 0x218], 0x14
push 5
mov byte [esp + 0x21c], 2
call fcn.00557cb0
add esp, 0x24
push ebx
lea edi, [esp + 0x50]
call fcn.0049ba60
lea ecx, [esp + 0xb8]
mov dword [esp + 0x14], esi
mov byte [esp + 0x1f8], 0
call fcn.00401750
lea ecx, [esp + 0x94]
call fcn.00401750
lea ecx, [esp + 0x70]
call fcn.00401750
lea ecx, [esp + 0x4c]
call fcn.00401750
mov eax, ebx
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret