Function at 0x1004a520
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 sym.libcurl.dll_curl_url
xor esi, esi
mov ebp, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
test ebp, ebp
jne 0x1004a563
lea esi, [eax + 0x1b]
jmp 0x1004a9a9
push edi
mov edi, dword [esp + 0x38]
push 0x208
push edi
push 0
push ebp
call sym.libcurl.dll_curl_url_set
add esp, 0x10
test eax, eax
jne 0x1004a98a
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebp
call sym.libcurl.dll_curl_url_get
add esp, 0x10
test eax, eax
jne 0x1004a910
push dword [esp + 0x18]
push str.https
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1004a5c1
xor ebx, ebx
cmp dword [esp + 0x3c], 3
sete bl
add ebx, 2
jmp 0x1004a681
push dword [esp + 0x18]
push str.socks5h
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1004a5e0
mov ebx, 7
jmp 0x1004a681
push dword [esp + 0x18]
push str.socks5
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1004a5ff
mov ebx, 5
jmp 0x1004a681
push dword [esp + 0x18]
push str.socks4a
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1004a61b
mov ebx, 6
jmp 0x1004a681
push dword [esp + 0x18]
push str.socks4
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1004a67c
push dword [esp + 0x18]
push str.socks
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1004a67c
push dword [esp + 0x18]
push str.http
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1004a676
push edi
push str.Unsupported_proxy_scheme_for__s
push dword [esp + 0x38]
call fcn.1000e940
add esp, 0xc
mov esi, 7
jmp 0x1004a9a8
mov ebx, dword [esp + 0x3c]
jmp 0x1004a681
mov ebx, 4
push 0x10
push dword [esp + 0x34]
call fcn.1005af40
add esp, 8
test al, al
jne 0x1004a6b9
cmp ebx, 2
je 0x1004a69d
cmp ebx, 3
jne 0x1004a6b9
push edi
push str.Unsupported_proxy__s__libcurl_is_built_without_the_HTTPS_proxy_support.
push dword [esp + 0x38]
call fcn.1000e940
add esp, 0xc
mov esi, 4
jmp 0x1004a9a8
cmp ebx, 7
je 0x1004a6d1
cmp ebx, 5
je 0x1004a6d1
cmp ebx, 6
je 0x1004a6d1
cmp ebx, 4
je 0x1004a6d1
xor al, al
jmp 0x1004a6d3
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 sym.libcurl.dll_curl_url_get
add esp, 0x10
test eax, eax
je 0x1004a709
cmp eax, 0xb
jne 0x1004a9a8
push 0x40
lea eax, [esp + 0x20]
push eax
push 3
push ebp
call sym.libcurl.dll_curl_url_get
add esp, 0x10
test eax, eax
je 0x1004a728
cmp eax, 0xc
jne 0x1004a9a8
cmp dword [esp + 0x20], esi
jne 0x1004a738
cmp dword [esp + 0x1c], esi
je 0x1004a7e0
push dword [edi + 0x88]
call dword [0x10075260]
mov eax, dword [esp + 0x24]
push eax
mov dword [edi + 0x88], eax
mov eax, dword [esp + 0x38]
add eax, 0xd64
push eax
call fcn.10036710
mov esi, eax
mov dword [esp + 0x2c], 0
add esp, 0xc
test esi, esi
jne 0x1004a9a8
push dword [edi + 0x8c]
call dword [0x10075260]
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [edi + 0x8c], esi
test eax, eax
jne 0x1004a7aa
push 0x100606db
call dword [0x10075268]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1004a910
push eax
mov dword [edi + 0x8c], eax
mov eax, dword [esp + 0x34]
add eax, 0xd68
push eax
call fcn.10036710
mov esi, eax
mov dword [esp + 0x24], 0
add esp, 8
test esi, esi
jne 0x1004a9a8
mov eax, dword [esp + 0x34]
mov byte [eax + 0x1ca], 1
push 0
lea eax, [esp + 0x2c]
push eax
push 6
push ebp
call sym.libcurl.dll_curl_url_get
mov eax, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x1004a816
push 0xa
push 0
push eax
call dword [0x10060248]
push dword [esp + 0x34]
mov ebx, eax
call dword [0x10075260]
add esp, 0x10
jmp 0x1004a828
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0x4a0]
test ax, ax
je 0x1004a82e
mov ebx, eax
test ebx, ebx
js 0x1004a868
jmp 0x1004a842
cmp ebx, 2
je 0x1004a83d
cmp ebx, 3
mov ebx, 0x438
jne 0x1004a842
mov ebx, 0x1bb
mov eax, dword [esp + 0x34]
mov dword [edi + 0x80], ebx
cmp dword [eax + 0x440], 0
jl 0x1004a862
cmp byte [esp + 0x13], 0
jne 0x1004a862
cmp dword [eax + 0x70], 0
jne 0x1004a868
mov dword [eax + 0x440], ebx
push 0x40
lea eax, [esp + 0x18]
push eax
push 5
push ebp
call sym.libcurl.dll_curl_url_get
add esp, 0x10
test eax, eax
jne 0x1004a910
cmp byte [esp + 0x13], al
je 0x1004a93a
push dword [esp + 0x14]
push str.localhost
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1004a93a
push 0x40
lea eax, [esp + 0x28]
push eax
push 7
push ebp
call sym.libcurl.dll_curl_url_get
add esp, 0x10
test eax, eax
jne 0x1004a910
mov ecx, dword [esp + 0x24]
mov eax, 0x10061918
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004a8e4
test dl, dl
je 0x1004a8e0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004a8e4
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004a8c4
xor eax, eax
jmp 0x1004a8e9
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004a93a
push dword [esp + 0x14]
call dword [0x10075260]
push dword [esp + 0x28]
push str.localhost_s
call sym.libcurl.dll_curl_maprintf
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1004a91a
mov esi, 0x1b
jmp 0x1004a9a8
push dword [edi + 0x70]
call dword [0x10075260]
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [edi + 0x70], eax
mov dword [edi + 0x78], eax
mov dword [esp + 0x14], 0
jmp 0x1004a9a8
push dword [edi + 0x70]
call dword [0x10075260]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [edi + 0x70], edx
cmp byte [edx], 0x5b
jne 0x1004a97d
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a957
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.1004b4a0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [edi + 0x78], edx
mov dword [esp + 0x14], 0
jmp 0x1004a9a8
push eax
call sym.libcurl.dll_curl_url_strerror
push eax
push edi
push str.Unsupported_proxy_syntax_in__s:__s
push dword [esp + 0x40]
call fcn.1000e940
add esp, 0x14
mov esi, 5
pop edi
push dword [esp + 0x1c]
call dword [0x10075260]
push dword [esp + 0x1c]
call dword [0x10075260]
push dword [esp + 0x18]
call dword [0x10075260]
push dword [esp + 0x20]
call dword [0x10075260]
push dword [esp + 0x30]
call dword [0x10075260]
push ebp
call sym.libcurl.dll_curl_url_cleanup
add esp, 0x18
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret