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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
call fcn.004451d0
xor esi, esi
mov ebp, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
test ebp, ebp
jne 0x41b8d3
lea esi, [eax + 0x1b]
jmp 0x41bd19
push edi
mov edi, dword [esp + 0x38]
push 0x208
push edi
push 0
push ebp
call fcn.00445980
add esp, 0x10
test eax, eax
jne 0x41bcfa
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebp
call fcn.00445320
add esp, 0x10
test eax, eax
jne 0x41bc80
push dword [esp + 0x18]
push str.https
call fcn.00421390
add esp, 8
test eax, eax
je 0x41b931
xor ebx, ebx
cmp dword [esp + 0x3c], 3
sete bl
add ebx, 2
jmp 0x41b9f1
push dword [esp + 0x18]
push str.socks5h
call fcn.00421390
add esp, 8
test eax, eax
je 0x41b950
mov ebx, 7
jmp 0x41b9f1
push dword [esp + 0x18]
push str.socks5
call fcn.00421390
add esp, 8
test eax, eax
je 0x41b96f
mov ebx, 5
jmp 0x41b9f1
push dword [esp + 0x18]
push str.socks4a
call fcn.00421390
add esp, 8
test eax, eax
je 0x41b98b
mov ebx, 6
jmp 0x41b9f1
push dword [esp + 0x18]
push str.socks4
call fcn.00421390
add esp, 8
test eax, eax
jne 0x41b9ec
push dword [esp + 0x18]
push str.socks
call fcn.00421390
add esp, 8
test eax, eax
jne 0x41b9ec
push dword [esp + 0x18]
push str.http
call fcn.00421390
add esp, 8
test eax, eax
jne 0x41b9e6
push edi
push str.Unsupported_proxy_scheme_for__s
push dword [esp + 0x38]
call fcn.0041d7b0
add esp, 0xc
mov esi, 7
jmp 0x41bd18
mov ebx, dword [esp + 0x3c]
jmp 0x41b9f1
mov ebx, 4
push 0x10
push dword [esp + 0x34]
call fcn.00418200
add esp, 8
test al, al
jne 0x41ba29
cmp ebx, 2
je 0x41ba0d
cmp ebx, 3
jne 0x41ba29
push edi
push str.Unsupported_proxy__s__libcurl_is_built_without_the_HTTPS_proxy_support.
push dword [esp + 0x38]
call fcn.0041d7b0
add esp, 0xc
mov esi, 4
jmp 0x41bd18
cmp ebx, 7
je 0x41ba41
cmp ebx, 5
je 0x41ba41
cmp ebx, 6
je 0x41ba41
cmp ebx, 4
je 0x41ba41
xor al, al
jmp 0x41ba43
mov al, 1
movzx edi, al
xor edi, 1
mov byte [esp + 0x13], al
push 0x40
lea eax, [esp + 0x24]
shl edi, 5
add edi, dword [esp + 0x38]
push eax
push 2
push ebp
mov byte [edi + 0x84], bl
call fcn.00445320
add esp, 0x10
test eax, eax
je 0x41ba79
cmp eax, 0xb
jne 0x41bd18
push 0x40
lea eax, [esp + 0x20]
push eax
push 3
push ebp
call fcn.00445320
add esp, 0x10
test eax, eax
je 0x41ba98
cmp eax, 0xc
jne 0x41bd18
cmp dword [esp + 0x20], esi
jne 0x41baa8
cmp dword [esp + 0x1c], esi
je 0x41bb50
push dword [edi + 0x88]
call dword [0x46e004]
mov eax, dword [esp + 0x24]
push eax
mov dword [edi + 0x88], eax
mov eax, dword [esp + 0x38]
add eax, 0xd54
push eax
call fcn.00409990
mov esi, eax
mov dword [esp + 0x2c], 0
add esp, 0xc
test esi, esi
jne 0x41bd18
push dword [edi + 0x8c]
call dword [0x46e004]
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [edi + 0x8c], esi
test eax, eax
jne 0x41bb1a
push 0x45e419
call dword [0x46e00c]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41bc80
push eax
mov dword [edi + 0x8c], eax
mov eax, dword [esp + 0x34]
add eax, 0xd58
push eax
call fcn.00409990
mov esi, eax
mov dword [esp + 0x24], 0
add esp, 8
test esi, esi
jne 0x41bd18
mov eax, dword [esp + 0x34]
mov byte [eax + 0x1ca], 1
push 0
lea eax, [esp + 0x2c]
push eax
push 6
push ebp
call fcn.00445320
mov eax, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x41bb86
push 0xa
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
push dword [esp + 0x34]
mov ebx, eax
call dword [0x46e004]
add esp, 0x10
jmp 0x41bb98
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0x4a8]
test ax, ax
je 0x41bb9e
mov ebx, eax
test ebx, ebx
js 0x41bbd8
jmp 0x41bbb2
cmp ebx, 2
je 0x41bbad
cmp ebx, 3
mov ebx, 0x438
jne 0x41bbb2
mov ebx, 0x1bb
mov eax, dword [esp + 0x34]
mov dword [edi + 0x80], ebx
cmp dword [eax + 0x440], 0
jl 0x41bbd2
cmp byte [esp + 0x13], 0
jne 0x41bbd2
cmp dword [eax + 0x70], 0
jne 0x41bbd8
mov dword [eax + 0x440], ebx
push 0x40
lea eax, [esp + 0x18]
push eax
push 5
push ebp
call fcn.00445320
add esp, 0x10
test eax, eax
jne 0x41bc80
cmp byte [esp + 0x13], al
je 0x41bcaa
push dword [esp + 0x14]
push str.localhost
call fcn.00421390
add esp, 8
test eax, eax
je 0x41bcaa
push 0x40
lea eax, [esp + 0x28]
push eax
push 7
push ebp
call fcn.00445320
add esp, 0x10
test eax, eax
jne 0x41bc80
mov ecx, dword [esp + 0x24]
mov eax, 0x45e788
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41bc54
test dl, dl
je 0x41bc50
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41bc54
add eax, 2
add ecx, 2
test dl, dl
jne 0x41bc34
xor eax, eax
jmp 0x41bc59
sbb eax, eax
or eax, 1
test eax, eax
je 0x41bcaa
push dword [esp + 0x14]
call dword [0x46e004]
push dword [esp + 0x28]
push str.localhost_s
call fcn.0042d0b0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41bc8a
mov esi, 0x1b
jmp 0x41bd18
push dword [edi + 0x70]
call dword [0x46e004]
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [edi + 0x70], eax
mov dword [edi + 0x78], eax
mov dword [esp + 0x14], 0
jmp 0x41bd18
push dword [edi + 0x70]
call dword [0x46e004]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [edi + 0x70], edx
cmp byte [edx], 0x5b
jne 0x41bced
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bcc7
push dword [esp + 0x34]
sub ecx, ebx
push dword [esp + 0x34]
push ebp
mov byte [ecx + edx - 1], al
inc dword [esp + 0x20]
call fcn.0041c830
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [edi + 0x78], edx
mov dword [esp + 0x14], 0
jmp 0x41bd18
push eax
call fcn.0042f1f0
push eax
push edi
push str.Unsupported_proxy_syntax_in__s:__s
push dword [esp + 0x40]
call fcn.0041d7b0
add esp, 0x14
mov esi, 5
pop edi
push dword [esp + 0x1c]
call dword [0x46e004]
push dword [esp + 0x1c]
call dword [0x46e004]
push dword [esp + 0x18]
call dword [0x46e004]
push dword [esp + 0x20]
call dword [0x46e004]
push dword [esp + 0x30]
call dword [0x46e004]
push ebp
call fcn.004451e0
add esp, 0x18
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret