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

Disassembly:
sub esp, 0x30
mov eax, dword [0x578134]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], 0
push dword [edi + 0x78]
mov byte [esp + 0x13], 0
call fcn.004b1370
push dword [edi + 0x78]
mov dword [esp + 0x28], eax
call fcn.004b1390
mov byte [esi], 0
add esp, 8
mov dword [ebx], 0
cmp dword [edi + 0xae8], 0
mov dword [esp + 0x24], eax
jne 0x494408
pop edi
mov ebx, 3
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004eacf5
add esp, 0x30
ret
push edi
call fcn.00493ac0
mov esi, eax
add esp, 4
test esi, esi
jne 0x494430
pop edi
mov ebx, 0x1b
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004eacf5
add esp, 0x30
ret
push esi
push edi
mov dword [ebx], esi
call fcn.00496110
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x494af2
mov eax, dword [edi + 0xa28]
test eax, eax
je 0x49446d
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburl.c
push 0xd0c
push eax
call fcn.0049a070
add esp, 0xc
mov dword [esi + 0x17c], eax
test eax, eax
je 0x494417
mov eax, dword [edi + 0xa34]
test eax, eax
je 0x494494
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburl.c
push 0xd14
push eax
call fcn.0049a070
add esp, 0xc
mov dword [esi + 0x180], eax
test eax, eax
je 0x494417
push esi
call fcn.00494e90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x494af2
mov eax, dword [esi + 0x2ec]
test byte [eax + 0x44], 1
je 0x4944c2
cmp byte [esi + 0x2aa], bl
je 0x4944c2
mov byte [esi + 0x2b3], 1
mov eax, dword [edi + 0x5b8]
test eax, eax
je 0x49450f
cmp byte [edi + 0xff1], 0
je 0x49450f
movzx eax, ax
push eax
push 0x55909c
mov dword [esi + 0x100], eax
lea eax, [esp + 0x30]
push 0x10
push eax
call fcn.0049b960
push 0
lea eax, [esp + 0x3c]
push eax
push 6
push dword [edi + 0xfbc]
call fcn.004b4dd0
add esp, 0x20
test eax, eax
jne 0x494417
push ebp
lea eax, [esi + 0x178]
push eax
lea ebp, [esi + 0x174]
push ebp
lea ecx, [esi + 0x170]
push ecx
push esi
push edi
call fcn.00495720
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x494af1
mov eax, dword [esi + 0x2e8]
mov ecx, str.anonymous
mov ebx, str.ftp_example.com
test byte [eax + 0x44], 0x20
je 0x494558
cmp byte [esi + 0x2ac], 0
je 0x49455f
mov ecx, 0x54acfb
mov ebx, ecx
cmp dword [esi + 0x170], 0
jne 0x494589
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburl.c
push 0xace
push ecx
call fcn.0049a070
add esp, 0xc
mov dword [esi + 0x170], eax
test eax, eax
je 0x494946
cmp dword [ebp], 0
jne 0x4945ad
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburl.c
push 0xad5
push ebx
call fcn.0049a070
add esp, 0xc
mov dword [ebp], eax
test eax, eax
je 0x494946
push dword [edi + 0x820]
push esi
push edi
call fcn.00495ba0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x494af1
lea eax, [esi + 0x94]
push eax
push esi
call fcn.004956e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x494af1
cmp byte [esi + 0x2a7], al
je 0x494603
lea eax, [esi + 0xac]
push eax
push esi
call fcn.004956e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x494af1
cmp byte [esi + 0x2aa], 0
je 0x494626
lea eax, [esi + 0xdc]
push eax
push esi
call fcn.004956e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x494af1
cmp byte [esi + 0x2ab], 0
je 0x494649
lea eax, [esi + 0xbc]
push eax
push esi
call fcn.004956e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x494af1
cmp byte [esi + 0x2a7], 0
je 0x494671
push dword [esi + 0x9c]
push dword [esi + 0xb4]
call fcn.0048d530
add esp, 8
test eax, eax
je 0x494671
mov byte [esi + 0x2a7], 0
mov cl, byte [esi + 0x2a8]
test cl, cl
je 0x494692
mov eax, dword [esi + 0x104]
cmp eax, dword [esi + 0x100]
jne 0x494692
mov byte [esi + 0x2a8], 0
xor cl, cl
cmp byte [esi + 0x2a7], 0
jne 0x49469f
test cl, cl
je 0x4946af
cmp byte [esi + 0x2aa], 0
je 0x4946af
mov byte [esi + 0x2b3], 1
mov eax, dword [esi + 0x2e8]
mov edx, eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4946d6
push esi
call ecx
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x494af1
mov eax, dword [esi + 0x2e8]
mov edx, eax
cmp dword [esi + 0xfc], 0
jge 0x4946e8
mov eax, dword [eax + 0x3c]
mov dword [esi + 0xfc], eax
mov dword [esi + 0x1d4], 0x49a550
mov dword [esi + 0x1dc], fcn.0049a6b0
mov dword [esi + 0x1d8], 0x49a550
mov dword [esi + 0x1e0], fcn.0049a6b0
mov al, byte [edi + 0xad9]
mov byte [esi + 0x2c0], al
test byte [edx + 0x44], 0x10
je 0x4947c2
push esi
call fcn.004be270
mov eax, dword [esi + 0x2e8]
lea ecx, [esp + 0x17]
push ecx
push esi
mov eax, dword [eax + 0x14]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4947a3
mov byte [esi + 0x2a2], 1
push esi
push dword [edi + 0xc88]
call fcn.004b80a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x494af1
push edi
call fcn.00496e30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x494789
mov eax, dword [esi + 0x2e8]
push 0
push ebx
push esi
mov eax, dword [eax + 0xc]
call eax
jmp 0x494aee
push esi
push edi
call fcn.004b0e70
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.004ba1e0
add esp, 0x20
push esi
push edi
call fcn.00492f50
add esp, 8
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004eacf5
add esp, 0x30
ret
mov eax, dword [edi + 0x9ac]
mov dword [edi + 0x840], eax
mov eax, dword [edi + 0x9b0]
mov dword [edi + 0x89c], eax
mov eax, dword [edi + 0x9b4]
mov dword [edi + 0x844], eax
mov eax, dword [edi + 0x9b8]
mov dword [edi + 0x8a0], eax
mov eax, dword [edi + 0x9d8]
mov dword [edi + 0x84c], eax
mov dword [edi + 0x8a8], eax
mov eax, dword [edi + 0x9d4]
mov dword [edi + 0x850], eax
mov dword [edi + 0x8ac], eax
mov eax, dword [edi + 0x9c4]
mov dword [edi + 0x854], eax
mov eax, dword [edi + 0x9c8]
mov dword [edi + 0x8b0], eax
mov eax, dword [edi + 0x9cc]
mov dword [edi + 0x858], eax
mov eax, dword [edi + 0x9d0]
mov dword [edi + 0x8b4], eax
mov eax, dword [edi + 0x9bc]
mov dword [edi + 0x85c], eax
mov eax, dword [edi + 0x9c0]
mov dword [edi + 0x8b8], eax
mov eax, dword [edi + 0x9e0]
mov dword [edi + 0x868], eax
mov eax, dword [edi + 0x9e4]
mov dword [edi + 0x8c4], eax
mov eax, dword [edi + 0x9e8]
mov dword [edi + 0x86c], eax
mov eax, dword [edi + 0x9ec]
mov edx, dword [edi + 0x944]
mov ecx, dword [edi + 0x948]
mov dword [edi + 0x8c8], eax
mov eax, dword [edi + 0x94c]
mov dword [edi + 0x87c], eax
mov eax, dword [edi + 0x950]
mov dword [edi + 0x8d8], eax
mov eax, dword [edi + 0x978]
mov dword [edi + 0x880], eax
mov eax, dword [edi + 0x97c]
mov dword [edi + 0x8dc], eax
mov eax, dword [edi + 0x988]
mov dword [edi + 0x884], eax
mov eax, dword [edi + 0x98c]
mov dword [edi + 0x8e0], eax
mov eax, dword [edi + 0x980]
mov dword [edi + 0x888], eax
mov eax, dword [edi + 0x984]
mov dword [edi + 0x8e4], eax
lea eax, [esi + 0x248]
push eax
lea eax, [edi + 0x838]
mov dword [edi + 0x878], edx
push eax
mov dword [edi + 0x8d4], ecx
mov dword [edi + 0x848], edx
mov dword [edi + 0x8a4], ecx
call fcn.00498120
add esp, 8
test al, al
je 0x494946
lea eax, [esi + 0x274]
push eax
lea eax, [edi + 0x894]
push eax
call fcn.00498120
add esp, 8
test al, al
jne 0x494960
pop ebp
pop edi
mov ebx, 0x1b
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004eacf5
add esp, 0x30
ret
push edi
call fcn.00496530
add esp, 4
cmp byte [edi + 0xacd], 0
je 0x49497f
cmp byte [edi + 0xfee], 0
je 0x494a3c
cmp byte [edi + 0xad1], 0
jne 0x494a3c
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call fcn.00491ff0
add esp, 0x14
test al, al
je 0x494a3c
mov ebx, dword [esp + 0x14]
push ebx
push esi
call fcn.00496aa0
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburl.c
push 0xe16
push dword [esi + 0x244]
call fcn.00499bf0
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburl.c
push 0xe18
push esi
call fcn.00499bf0
mov eax, dword [esp + 0x38]
add esp, 0x20
mov esi, ebx
mov dword [eax], ebx
cmp dword [ebx + 0xc4], 0
je 0x4949f9
mov eax, dword [ebx + 0xc8]
jmp 0x494a10
cmp dword [ebx + 0xe4], 0
je 0x494a0a
mov eax, dword [ebx + 0xe8]
jmp 0x494a10
mov eax, dword [ebx + 0xa0]
cmp byte [ebx + 0x2a9], 0
mov ecx, str.host
push eax
mov eax, str.proxy
cmove eax, ecx
push eax
push dword [ebx + 0x48]
push str.Re_using_existing_connection____ld__with__s__s_n
push edi
call fcn.0049a370
add esp, 0x14
jmp 0x494bb2
mov eax, dword [esi + 0x2e8]
test dword [eax + 0x44], 0x100
je 0x494a6b
cmp byte [edi + 0xadb], 0
je 0x494a5b
mov byte [esi + 0x2c2], 1
cmp byte [edi + 0xada], 0
je 0x494a6b
mov byte [esi + 0x2c1], 1
cmp byte [esp + 0x13], 0
jne 0x494ace
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc88]
push esi
call fcn.004b8590
mov ebp, dword [esp + 0x30]
add esp, 0xc
test ebp, ebp
je 0x494b06
test eax, eax
je 0x494b06
cmp dword [eax + 4], ebp
jb 0x494b06
push eax
push edi
call fcn.004b8380
push edi
mov ebx, eax
call fcn.004b8b40
add esp, 0xc
test ebx, ebx
je 0x494abb
push 0
push ebx
push edi
call fcn.00492d10
add esp, 0xc
jmp 0x494b0f
push ebp
push dword [esp + 0x18]
push str.No_more_connections_allowed_to_host__s:__zu_n
push edi
call fcn.0049a370
add esp, 0x10
push str.No_connections_available._n
push edi
call fcn.0049a370
push esi
call fcn.00493f10
mov eax, dword [esp + 0x24]
mov ebx, 0x59
mov dword [eax], 0
add esp, 0xc
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004eacf5
add esp, 0x30
ret
push edi
call fcn.004b8b40
add esp, 4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x494b41
push edi
call fcn.004b8af0
add esp, 4
cmp eax, ebx
jb 0x494b41
push edi
call fcn.004b8430
add esp, 4
test eax, eax
je 0x494c09
push 0
push eax
push edi
call fcn.00492d10
add esp, 0xc
push esi
push dword [edi + 0xc88]
call fcn.004b80a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x494af1
test byte [edi + 0xd2c], 0x28
je 0x494b81
cmp byte [edi + 0xd34], al
je 0x494b81
push str.NTLM_picked_AND_auth_done_set__clear_picked__n
push edi
call fcn.0049a370
add esp, 8
mov dword [edi + 0xd2c], ebx
mov byte [edi + 0xd34], bl
test byte [edi + 0xd3c], 0x28
je 0x494bb2
cmp byte [edi + 0xd44], 0
je 0x494bb2
push str.NTLM_proxy_picked_AND_auth_done_set__clear_picked__n
push edi
call fcn.0049a370
add esp, 8
mov dword [edi + 0xd3c], 0
mov byte [edi + 0xd44], 0
push esi
push edi
call fcn.00492f50
push edi
call fcn.00496e30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x494af1
mov eax, dword [edi + 0x5d8]
push 1
mov dword [esi + 0x380], eax
mov eax, dword [edi + 0x628]
push ebx
push edi
mov dword [esi + 0x384], eax
call fcn.004be510
add esp, 0xc
mov dword [esp + 0x18], edx
mov ebp, eax
cmp byte [esi + 0x2a5], bl
je 0x494c1c
mov eax, dword [esp + 0x20]
mov byte [eax], bl
jmp 0x494d92
push str.No_connections_available_in_cache_n
push edi
call fcn.0049a370
add esp, 8
jmp 0x494ace
cmp byte [esi + 0x2a9], bl
jne 0x494cef
mov cl, byte [esi + 0x2a7]
mov byte [esp + 0x13], cl
cmp byte [esi + 0x2a8], bl
je 0x494c42
mov eax, dword [esi + 0x104]
jmp 0x494c48
mov eax, dword [esi + 0x100]
mov dword [esi + 0xfc], eax
test cl, cl
mov edx, 0x9c
mov eax, 0xb4
cmove eax, edx
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburl.c
push 0xc44
push dword [eax + esi]
call fcn.0049a070
add esp, 0xc
mov dword [esi + 0xa4], eax
test eax, eax
jne 0x494c84
lea ebx, [eax + 0x1b]
jmp 0x494d92
push dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ebp
push ecx
push dword [esi + 0xfc]
push eax
push esi
call fcn.004b7d40
add esp, 0x18
cmp eax, 1
jne 0x494caf
mov eax, dword [esp + 0x20]
mov byte [eax], 1
jmp 0x494d8b
cmp eax, 0xfffffffe
jne 0x494cbc
lea ebx, [eax + 0x1e]
jmp 0x494d8b
cmp dword [esp + 0x14], ebx
jne 0x494d8b
cmp byte [esp + 0x13], bl
mov ecx, 0xa0
mov eax, 0xb8
cmove eax, ecx
push dword [eax + esi]
push str.Couldnt_resolve_host__s
push edi
call fcn.0049a290
mov ebx, 6
jmp 0x494d88
mov cl, byte [esi + 0x2ab]
mov edx, 0xe4
test cl, cl
mov byte [esp + 0x13], cl
mov eax, 0xc4
cmove eax, edx
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburl.c
push 0xc5c
push dword [eax + esi]
call fcn.0049a070
add esp, 0xc
mov dword [esi + 0xa4], eax
test eax, eax
jne 0x494d2c
lea ebx, [eax + 0x1b]
jmp 0x494d92
push dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ebp
push ecx
push dword [esi + 0xfc]
push eax
push esi
call fcn.004b7d40
add esp, 0x18
cmp eax, 1
jne 0x494d54
mov eax, dword [esp + 0x20]
mov byte [eax], 1
jmp 0x494d8b
cmp eax, 0xfffffffe
jne 0x494d5e
lea ebx, [eax + 0x1e]
jmp 0x494d8b
cmp dword [esp + 0x14], ebx
jne 0x494d8b
cmp byte [esp + 0x13], bl
mov ecx, 0xe8
mov eax, 0xc8
cmove eax, ecx
push dword [eax + esi]
push str.Couldnt_resolve_proxy__s
push edi
call fcn.0049a290
mov ebx, 5
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esi + 0x4c], eax
lea edx, [esi + 0x94]
test edx, edx
je 0x494dbe
mov edx, dword [edx + 8]
test edx, edx
je 0x494dbe
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494da8
sub ecx, edi
je 0x494dbe
cmp byte [edx + ecx - 1], 0x2e
jne 0x494dbe
mov byte [edx + ecx - 1], al
cmp byte [esi + 0x2aa], 0
je 0x494df6
lea edx, [esi + 0xdc]
test edx, edx
je 0x494df6
mov edx, dword [edx + 8]
test edx, edx
je 0x494df6
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494de0
sub ecx, edi
je 0x494df6
cmp byte [edx + ecx - 1], 0x2e
jne 0x494df6
mov byte [edx + ecx - 1], al
cmp byte [esi + 0x2ab], 0
je 0x494e2b
lea edx, [esi + 0xbc]
test edx, edx
je 0x494e2b
mov edx, dword [edx + 8]
test edx, edx
je 0x494e2b
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494e15
sub ecx, edi
je 0x494e2b
cmp byte [edx + ecx - 1], 0x2e
jne 0x494e2b
mov byte [edx + ecx - 1], al
cmp byte [esi + 0x2a7], 0
je 0x494af1
lea edx, [esi + 0xac]
test edx, edx
je 0x494af1
mov edx, dword [edx + 8]
test edx, edx
je 0x494af1
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494e56
sub ecx, esi
je 0x494af1
cmp byte [edx + ecx - 1], 0x2e
jne 0x494af1
pop ebp
pop edi
mov byte [edx + ecx - 1], al
mov eax, ebx
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
xor ecx, esp
call fcn.004eacf5
add esp, 0x30
ret