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

Disassembly:
sub esp, 0x50
mov eax, dword [0x5700c4]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
xor ebp, ebp
mov dword [esp + 0x14], eax
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
push edi
test esi, esi
je 0x4afeff
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4afcb7
sub ebx, ecx
cmp ebx, 0x7a1200
ja 0x4afeff
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
lea eax, [ebx*2 + 2]
push 0x2b0
push eax
call fcn.004940f0
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [eax + 0x28], edi
test edi, edi
je 0x4b05a2
lea eax, [ebx + 1]
add eax, edi
mov dword [esp + 0x14], eax
push 0x29
mov byte [eax], 0
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004ae780
mov ebx, dword [esp + 0x78]
add esp, 0xc
test al, al
je 0x4afe7c
lea ebp, [esp + 0x30]
mov byte [esp + 0x13], 1
lea ecx, [ebp + 1]
nop dword [eax + eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x4afd30
lea eax, [esp + 0x30]
sub ebp, ecx
push 0x528470
push eax
call fcn.00487980
add esp, 8
test eax, eax
je 0x4afe7c
add esi, 5
mov ecx, edi
sub ecx, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4afd60
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x2c2
push 0x528470
mov dword [esp + 0x20], 0
call fcn.004944c0
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov dword [ebp], eax
test eax, eax
je 0x4b05a2
mov al, byte [edi]
cmp al, 0x2f
jne 0x4b007b
cmp byte [edi + 1], al
jne 0x4afe21
mov cl, byte [edi + 2]
add edi, 2
mov al, cl
cmp cl, 0x2f
je 0x4afe19
cmp cl, 0x61
jl 0x4afdc1
cmp cl, 0x7a
jle 0x4afdc9
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x4afde7
mov al, byte [edi + 1]
cmp al, 0x3a
je 0x4afdd4
cmp al, 0x7c
jne 0x4afde7
mov dl, byte [edi + 2]
mov al, cl
cmp dl, 0x2f
je 0x4afe19
cmp dl, 0x5c
je 0x4afe19
test dl, dl
je 0x4afe19
push 0xa
push edi
push str.localhost_
call fcn.00487b10
add esp, 0xc
test eax, eax
jne 0x4afe13
push 0xa
push edi
push str.127.0.0.1_
call fcn.00487b10
add esp, 0xc
test eax, eax
je 0x4afeff
mov al, byte [edi + 9]
add edi, 9
cmp al, 0x2f
jne 0x4b007b
mov al, byte [edi + 1]
lea edx, [edi + 1]
cmp al, 0x61
jl 0x4afe2f
cmp al, 0x7a
jle 0x4afe39
sub al, 0x41
cmp al, 0x19
ja 0x4b007b
mov al, byte [edi + 2]
cmp al, 0x3a
je 0x4afe48
cmp al, 0x7c
jne 0x4b007b
mov al, byte [edi + 3]
cmp al, 0x2f
je 0x4afe5b
cmp al, 0x5c
je 0x4afe5b
test al, al
jne 0x4b007b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4afe60
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push edi
call fcn.004e70d0
add esp, 0xc
jmp 0x4b007b
cmp byte [esp + 0x13], 0
mov byte [edi], 0
je 0x4aff17
inc esi
xor eax, eax
add esi, ebp
je 0x4afeff
cmp byte [esi], 0x2f
jne 0x4afea1
cmp eax, 4
jge 0x4afea1
inc eax
add esi, 1
jne 0x4afe91
dec eax
cmp eax, 2
ja 0x4afeff
lea ebp, [esp + 0x30]
mov eax, ebp
push eax
call fcn.0048cc50
add esp, 4
test eax, eax
jne 0x4afed7
test bl, 8
jne 0x4afed7
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004e5245
add esp, 0x50
ret
lea ebx, [esp + 0x30]
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4afee0
lea eax, [esp + 0x30]
sub ebx, ecx
push 0x52d330
push eax
call fcn.004f2020
add esp, 8
cmp eax, ebx
je 0x4aff2f
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004e5245
add esp, 0x50
ret
test ebx, 0x204
je 0x4afeff
test bl, 4
mov ebp, str.https
mov eax, 0
cmove ebp, eax
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x4aff4b
cmp al, 0x2f
je 0x4aff4b
cmp al, 0x3f
je 0x4aff4b
cmp al, 0x23
je 0x4aff4b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4aff37
mov ebx, esi
sub ebx, ecx
je 0x4aff6d
push ebx
push ecx
push dword [esp + 0x1c]
call fcn.004e7650
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x6c]
mov byte [ebx + eax], 0
jmp 0x4aff79
mov ecx, dword [esp + 0x6c]
test ecx, 0x400
je 0x4afeff
test ecx, 0x200
je 0x4b003a
test ebp, ebp
jne 0x4b003a
mov ebx, dword [esp + 0x14]
push 4
push ebx
push str.ftp.
call fcn.00487b10
add esp, 0xc
test eax, eax
je 0x4affaf
mov ebp, 0x52b444
jmp 0x4b003a
push 5
push ebx
push str.dict.
call fcn.00487b10
add esp, 0xc
test eax, eax
je 0x4affca
mov ebp, str.dict
jmp 0x4b003a
push 5
push ebx
push str.ldap.
call fcn.00487b10
add esp, 0xc
test eax, eax
je 0x4affe5
mov ebp, str.ldap
jmp 0x4b003a
push 5
push ebx
push str.imap.
call fcn.00487b10
add esp, 0xc
test eax, eax
je 0x4b0000
mov ebp, str.imap
jmp 0x4b003a
push 5
push ebx
push str.smtp.
call fcn.00487b10
add esp, 0xc
test eax, eax
je 0x4b001b
mov ebp, str.smtp
jmp 0x4b003a
push 5
push ebx
push str.pop3.
call fcn.00487b10
add esp, 0xc
mov ebp, str.pop3
test eax, eax
mov ecx, str.http
cmove ebp, ecx
mov ebx, esi
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4b0040
sub ebx, ecx
push ebx
push esi
push edi
call fcn.004e7650
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x34d
push ebp
mov byte [ebx + edi], 0
call fcn.004944c0
mov ebp, dword [esp + 0x30]
add esp, 0x18
mov dword [ebp], eax
test eax, eax
je 0x4b05a2
mov ebx, dword [esp + 0x6c]
push dword [ebp]
call fcn.0048cc50
mov esi, edi
mov dword [esp + 0x24], eax
add esp, 4
lea edx, [esi + 1]
nop
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4b0090
push 0x52d330
push edi
sub esi, edx
call fcn.004f2020
add esp, 8
cmp eax, esi
jne 0x4afeff
test bl, bl
jns 0x4b01b7
cmp byte [edi], 0
je 0x4b01b7
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b00c5
sub ecx, edx
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x35a
lea eax, [ecx + ecx*2]
push eax
call fcn.004940f0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4b05a2
cmp byte [edi], 0
mov dh, 1
mov byte [esp + 0x12], 1
mov esi, eax
mov ebx, edi
je 0x4b01ab
cmp ebx, edi
jae 0x4b0111
mov al, byte [ebx]
mov byte [esi], al
jmp 0x4b0198
mov dl, byte [ebx]
cmp dl, 0x20
je 0x4b0183
xor ecx, ecx
movzx eax, dh
cmp dl, 0x3f
movzx ebp, dl
push ebp
cmovne ecx, eax
mov byte [esp + 0x17], cl
call fcn.004b0700
add esp, 4
test eax, eax
jne 0x4b0172
push ebp
call fcn.004b07a0
add esp, 4
test eax, eax
jne 0x4b0172
push ebp
call fcn.004b0740
add esp, 4
test eax, eax
jne 0x4b0172
movzx eax, byte [ebx]
push eax
push str.___02x
push 4
push esi
call fcn.00495db0
mov dh, byte [esp + 0x23]
mov eax, 3
add esp, 0x10
add esi, eax
jmp 0x4b0199
mov al, byte [ebx]
mov dh, byte [esp + 0x13]
mov byte [esi], al
mov eax, 1
add esi, eax
jmp 0x4b0199
test dh, dh
je 0x4b0195
mov word [esi], 0x3225
mov byte [esi + 2], 0x30
add esi, 3
jmp 0x4b0199
mov byte [esi], 0x2b
inc esi
inc ebx
cmp byte [ebx], 0
jne 0x4b0104
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x6c]
mov edi, eax
mov byte [esi], 0
mov dword [ebp + 0x2c], eax
push 0x23
push edi
call fcn.004e90e0
add esp, 8
test eax, eax
je 0x4b01ed
mov byte [eax], 0
inc eax
cmp byte [eax], 0
je 0x4b01ed
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x366
push eax
call fcn.004944c0
add esp, 0xc
mov dword [ebp + 0x24], eax
test eax, eax
je 0x4b05a2
push 0x3f
push edi
call fcn.004e90e0
add esp, 8
test eax, eax
je 0x4b021e
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
mov byte [eax], 0
inc eax
push 0x370
push eax
call fcn.004944c0
add esp, 0xc
mov dword [ebp + 0x20], eax
test eax, eax
je 0x4b05a2
cmp byte [edi], 0
je 0x4b02d4
test bl, 0x10
jne 0x4b02a6
push edi
call fcn.004c62f0
mov esi, eax
add esp, 4
test esi, esi
je 0x4b05a2
mov edx, edi
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4b0267
test al, al
je 0x4b0263
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4b0267
add ecx, 2
add edx, 2
test al, al
jne 0x4b0247
xor eax, eax
jmp 0x4b026c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b0293
cmp byte [esp + 0x12], 0
je 0x4b028c
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x382
push dword [ebp + 0x2c]
call fcn.00494040
add esp, 0xc
mov edi, esi
mov dword [ebp + 0x2c], esi
jmp 0x4b02c2
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x387
push esi
call fcn.00494040
add esp, 0xc
cmp byte [esp + 0x12], 0
jne 0x4b02c2
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x38a
push edi
call fcn.004944c0
add esp, 0xc
mov edi, eax
mov dword [ebp + 0x1c], edi
test edi, edi
je 0x4b05a2
mov dword [ebp + 0x2c], 0
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4b04e5
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4b02e5
push 0x52d330
push ebx
sub esi, ecx
call fcn.004f2020
add esp, 8
cmp eax, esi
jne 0x4afeff
xor esi, esi
push 0x40
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
call fcn.004e90e0
add esp, 8
mov edx, ebx
test eax, eax
je 0x4b03c9
mov ecx, dword [esp + 0x20]
inc eax
mov ebx, eax
test ecx, ecx
je 0x4b0341
test dword [ecx + 0x44], 0x400
je 0x4b0341
lea ecx, [esp + 0x1c]
jmp 0x4b0343
xor ecx, ecx
push ecx
lea ecx, [esp + 0x28]
sub eax, edx
push ecx
lea ecx, [esp + 0x20]
dec eax
push ecx
push eax
push edx
call fcn.0048da60
add esp, 0x14
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4b036a
mov esi, 3
jmp 0x4b03cd
test eax, eax
je 0x4b0381
mov ecx, dword [esp + 0x6c]
test cl, 0x20
je 0x4b037e
mov esi, 8
jmp 0x4b03cd
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b038c
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b0397
mov dword [ebp + 0xc], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x16]
push eax
push str.__45_0123456789abcdefABCDEF:.__c_n
push ebx
call fcn.00489fc0
add esp, 0x10
cmp eax, 1
jne 0x4b0473
mov al, byte [esp + 0x12]
cmp al, 0x5d
jne 0x4b041f
mov esi, dword [esp + 0x14]
jmp 0x4b045e
mov eax, dword [esp + 0x18]
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x1e9
push eax
call fcn.00494040
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x1ea
push dword [esp + 0x38]
call fcn.00494040
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x1eb
push dword [esp + 0x3c]
call fcn.00494040
add esp, 0x24
test esi, esi
je 0x4b0397
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004e5245
add esp, 0x50
ret
cmp al, 0x25
jne 0x4afeff
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x16]
push eax
lea eax, [ebx + esi]
push str._____c_n
push eax
call fcn.00489fc0
add esp, 0x10
cmp eax, 1
jne 0x4afeff
cmp byte [esp + 0x12], 0x5d
jne 0x4afeff
add esi, dword [esp + 0x14]
add esi, ebx
test esi, esi
je 0x4b0494
mov al, byte [esi]
test al, al
je 0x4b0494
cmp al, 0x3a
je 0x4b0484
jmp 0x4afeff
push 0x3a
push ebx
call fcn.004e90e0
mov esi, eax
add esp, 8
test esi, esi
je 0x4b0494
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
jne 0x4b052f
mov byte [esi], al
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b04a0
sub ecx, edx
jne 0x4b04b5
test dword [esp + 0x6c], 0x400
jne 0x4b04c7
push ebx
push ebp
call fcn.004afa70
add esp, 8
test eax, eax
jne 0x4aff04
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x3a8
push ebx
call fcn.004944c0
add esp, 0xc
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4b05a2
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x3ad
push dword [ebp + 0x28]
call fcn.00494040
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x3ae
push dword [ebp + 0x2c]
mov dword [ebp + 0x28], 0
call fcn.00494040
add esp, 0x18
mov dword [ebp + 0x2c], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004e5245
add esp, 0x50
ret
movzx eax, al
push eax
call fcn.004b0720
add esp, 4
test eax, eax
je 0x4b05ba
push 0xa
lea eax, [esp + 0x24]
push eax
push edi
call fcn.004f1f1a
mov edi, eax
add esp, 0xc
lea ecx, [edi - 1]
cmp ecx, 0xfffe
ja 0x4b05ba
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x4b05ba
push edi
mov byte [esi], 0
push 0x529400
mov byte [eax], 0
lea eax, [esp + 0x30]
push 7
push eax
call fcn.00495db0
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
lea eax, [esp + 0x3c]
mov dword [ebp + 0x30], edi
push 0x235
push eax
call fcn.004944c0
add esp, 0x1c
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x4b0494
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004e5245
add esp, 0x50
ret
mov ecx, dword [esp + 0x5c]
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e5245
add esp, 0x50
ret