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

Disassembly:
sub esp, 0x50
mov eax, dword [0x578134]
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 0x4b5a9f
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4b5857
sub ebx, ecx
cmp ebx, 0x7a1200
ja 0x4b5a9f
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
lea eax, [ebx*2 + 2]
push 0x2b0
push eax
call fcn.00499ca0
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [eax + 0x28], edi
test edi, edi
je 0x4b6142
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.004b4320
mov ebx, dword [esp + 0x78]
add esp, 0xc
test al, al
je 0x4b5a1c
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 0x4b58d0
lea eax, [esp + 0x30]
sub ebp, ecx
push 0x530480
push eax
call fcn.0048d530
add esp, 8
test eax, eax
je 0x4b5a1c
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 0x4b5900
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x2c2
push 0x530480
mov dword [esp + 0x20], 0
call fcn.0049a070
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov dword [ebp], eax
test eax, eax
je 0x4b6142
mov al, byte [edi]
cmp al, 0x2f
jne 0x4b5c1b
cmp byte [edi + 1], al
jne 0x4b59c1
mov cl, byte [edi + 2]
add edi, 2
mov al, cl
cmp cl, 0x2f
je 0x4b59b9
cmp cl, 0x61
jl 0x4b5961
cmp cl, 0x7a
jle 0x4b5969
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x4b5987
mov al, byte [edi + 1]
cmp al, 0x3a
je 0x4b5974
cmp al, 0x7c
jne 0x4b5987
mov dl, byte [edi + 2]
mov al, cl
cmp dl, 0x2f
je 0x4b59b9
cmp dl, 0x5c
je 0x4b59b9
test dl, dl
je 0x4b59b9
push 0xa
push edi
push str.localhost_
call fcn.0048d6c0
add esp, 0xc
test eax, eax
jne 0x4b59b3
push 0xa
push edi
push str.127.0.0.1_
call fcn.0048d6c0
add esp, 0xc
test eax, eax
je 0x4b5a9f
mov al, byte [edi + 9]
add edi, 9
cmp al, 0x2f
jne 0x4b5c1b
mov al, byte [edi + 1]
lea edx, [edi + 1]
cmp al, 0x61
jl 0x4b59cf
cmp al, 0x7a
jle 0x4b59d9
sub al, 0x41
cmp al, 0x19
ja 0x4b5c1b
mov al, byte [edi + 2]
cmp al, 0x3a
je 0x4b59e8
cmp al, 0x7c
jne 0x4b5c1b
mov al, byte [edi + 3]
cmp al, 0x2f
je 0x4b59fb
cmp al, 0x5c
je 0x4b59fb
test al, al
jne 0x4b5c1b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5a00
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push edi
call fcn.004ec860
add esp, 0xc
jmp 0x4b5c1b
cmp byte [esp + 0x13], 0
mov byte [edi], 0
je 0x4b5ab7
inc esi
xor eax, eax
add esi, ebp
je 0x4b5a9f
cmp byte [esi], 0x2f
jne 0x4b5a41
cmp eax, 4
jge 0x4b5a41
inc eax
add esi, 1
jne 0x4b5a31
dec eax
cmp eax, 2
ja 0x4b5a9f
lea ebp, [esp + 0x30]
mov eax, ebp
push eax
call fcn.00492800
add esp, 4
test eax, eax
jne 0x4b5a77
test bl, 8
jne 0x4b5a77
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004eacf5
add esp, 0x50
ret
lea ebx, [esp + 0x30]
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4b5a80
lea eax, [esp + 0x30]
sub ebx, ecx
push 0x535340
push eax
call fcn.004f71d0
add esp, 8
cmp eax, ebx
je 0x4b5acf
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004eacf5
add esp, 0x50
ret
test ebx, 0x204
je 0x4b5a9f
test bl, 4
mov ebp, str.https
mov eax, 0
cmove ebp, eax
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x4b5aeb
cmp al, 0x2f
je 0x4b5aeb
cmp al, 0x3f
je 0x4b5aeb
cmp al, 0x23
je 0x4b5aeb
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4b5ad7
mov ebx, esi
sub ebx, ecx
je 0x4b5b0d
push ebx
push ecx
push dword [esp + 0x1c]
call fcn.004ec860
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x6c]
mov byte [ebx + eax], 0
jmp 0x4b5b19
mov ecx, dword [esp + 0x6c]
test ecx, 0x400
je 0x4b5a9f
test ecx, 0x200
je 0x4b5bda
test ebp, ebp
jne 0x4b5bda
mov ebx, dword [esp + 0x14]
push 4
push ebx
push str.ftp.
call fcn.0048d6c0
add esp, 0xc
test eax, eax
je 0x4b5b4f
mov ebp, 0x533454
jmp 0x4b5bda
push 5
push ebx
push str.dict.
call fcn.0048d6c0
add esp, 0xc
test eax, eax
je 0x4b5b6a
mov ebp, str.dict
jmp 0x4b5bda
push 5
push ebx
push str.ldap.
call fcn.0048d6c0
add esp, 0xc
test eax, eax
je 0x4b5b85
mov ebp, str.ldap
jmp 0x4b5bda
push 5
push ebx
push str.imap.
call fcn.0048d6c0
add esp, 0xc
test eax, eax
je 0x4b5ba0
mov ebp, str.imap
jmp 0x4b5bda
push 5
push ebx
push str.smtp.
call fcn.0048d6c0
add esp, 0xc
test eax, eax
je 0x4b5bbb
mov ebp, str.smtp
jmp 0x4b5bda
push 5
push ebx
push str.pop3.
call fcn.0048d6c0
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 0x4b5be0
sub ebx, ecx
push ebx
push esi
push edi
call fcn.004ec860
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x34d
push ebp
mov byte [ebx + edi], 0
call fcn.0049a070
mov ebp, dword [esp + 0x30]
add esp, 0x18
mov dword [ebp], eax
test eax, eax
je 0x4b6142
mov ebx, dword [esp + 0x6c]
push dword [ebp]
call fcn.00492800
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 0x4b5c30
push 0x535340
push edi
sub esi, edx
call fcn.004f71d0
add esp, 8
cmp eax, esi
jne 0x4b5a9f
test bl, bl
jns 0x4b5d57
cmp byte [edi], 0
je 0x4b5d57
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5c65
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.00499ca0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4b6142
cmp byte [edi], 0
mov dh, 1
mov byte [esp + 0x12], 1
mov esi, eax
mov ebx, edi
je 0x4b5d4b
cmp ebx, edi
jae 0x4b5cb1
mov al, byte [ebx]
mov byte [esi], al
jmp 0x4b5d38
mov dl, byte [ebx]
cmp dl, 0x20
je 0x4b5d23
xor ecx, ecx
movzx eax, dh
cmp dl, 0x3f
movzx ebp, dl
push ebp
cmovne ecx, eax
mov byte [esp + 0x17], cl
call fcn.004b62a0
add esp, 4
test eax, eax
jne 0x4b5d12
push ebp
call fcn.004b6340
add esp, 4
test eax, eax
jne 0x4b5d12
push ebp
call fcn.004b62e0
add esp, 4
test eax, eax
jne 0x4b5d12
movzx eax, byte [ebx]
push eax
push str.___02x
push 4
push esi
call fcn.0049b960
mov dh, byte [esp + 0x23]
mov eax, 3
add esp, 0x10
add esi, eax
jmp 0x4b5d39
mov al, byte [ebx]
mov dh, byte [esp + 0x13]
mov byte [esi], al
mov eax, 1
add esi, eax
jmp 0x4b5d39
test dh, dh
je 0x4b5d35
mov word [esi], 0x3225
mov byte [esi + 2], 0x30
add esi, 3
jmp 0x4b5d39
mov byte [esi], 0x2b
inc esi
inc ebx
cmp byte [ebx], 0
jne 0x4b5ca4
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.004ee2f0
add esp, 8
test eax, eax
je 0x4b5d8d
mov byte [eax], 0
inc eax
cmp byte [eax], 0
je 0x4b5d8d
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x366
push eax
call fcn.0049a070
add esp, 0xc
mov dword [ebp + 0x24], eax
test eax, eax
je 0x4b6142
push 0x3f
push edi
call fcn.004ee2f0
add esp, 8
test eax, eax
je 0x4b5dbe
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
mov byte [eax], 0
inc eax
push 0x370
push eax
call fcn.0049a070
add esp, 0xc
mov dword [ebp + 0x20], eax
test eax, eax
je 0x4b6142
cmp byte [edi], 0
je 0x4b5e74
test bl, 0x10
jne 0x4b5e46
push edi
call fcn.004cbe90
mov esi, eax
add esp, 4
test esi, esi
je 0x4b6142
mov edx, edi
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4b5e07
test al, al
je 0x4b5e03
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4b5e07
add ecx, 2
add edx, 2
test al, al
jne 0x4b5de7
xor eax, eax
jmp 0x4b5e0c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b5e33
cmp byte [esp + 0x12], 0
je 0x4b5e2c
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x382
push dword [ebp + 0x2c]
call fcn.00499bf0
add esp, 0xc
mov edi, esi
mov dword [ebp + 0x2c], esi
jmp 0x4b5e62
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x387
push esi
call fcn.00499bf0
add esp, 0xc
cmp byte [esp + 0x12], 0
jne 0x4b5e62
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x38a
push edi
call fcn.0049a070
add esp, 0xc
mov edi, eax
mov dword [ebp + 0x1c], edi
test edi, edi
je 0x4b6142
mov dword [ebp + 0x2c], 0
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4b6085
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4b5e85
push 0x535340
push ebx
sub esi, ecx
call fcn.004f71d0
add esp, 8
cmp eax, esi
jne 0x4b5a9f
xor esi, esi
push 0x40
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
call fcn.004ee2f0
add esp, 8
mov edx, ebx
test eax, eax
je 0x4b5f69
mov ecx, dword [esp + 0x20]
inc eax
mov ebx, eax
test ecx, ecx
je 0x4b5ee1
test dword [ecx + 0x44], 0x400
je 0x4b5ee1
lea ecx, [esp + 0x1c]
jmp 0x4b5ee3
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.00493610
add esp, 0x14
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4b5f0a
mov esi, 3
jmp 0x4b5f6d
test eax, eax
je 0x4b5f21
mov ecx, dword [esp + 0x6c]
test cl, 0x20
je 0x4b5f1e
mov esi, 8
jmp 0x4b5f6d
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b5f2c
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b5f37
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.0048fb70
add esp, 0x10
cmp eax, 1
jne 0x4b6013
mov al, byte [esp + 0x12]
cmp al, 0x5d
jne 0x4b5fbf
mov esi, dword [esp + 0x14]
jmp 0x4b5ffe
mov eax, dword [esp + 0x18]
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x1e9
push eax
call fcn.00499bf0
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x1ea
push dword [esp + 0x38]
call fcn.00499bf0
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x1eb
push dword [esp + 0x3c]
call fcn.00499bf0
add esp, 0x24
test esi, esi
je 0x4b5f37
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004eacf5
add esp, 0x50
ret
cmp al, 0x25
jne 0x4b5a9f
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.0048fb70
add esp, 0x10
cmp eax, 1
jne 0x4b5a9f
cmp byte [esp + 0x12], 0x5d
jne 0x4b5a9f
add esi, dword [esp + 0x14]
add esi, ebx
test esi, esi
je 0x4b6034
mov al, byte [esi]
test al, al
je 0x4b6034
cmp al, 0x3a
je 0x4b6024
jmp 0x4b5a9f
push 0x3a
push ebx
call fcn.004ee2f0
mov esi, eax
add esp, 8
test esi, esi
je 0x4b6034
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
jne 0x4b60cf
mov byte [esi], al
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b6040
sub ecx, edx
jne 0x4b6055
test dword [esp + 0x6c], 0x400
jne 0x4b6067
push ebx
push ebp
call fcn.004b5610
add esp, 8
test eax, eax
jne 0x4b5aa4
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x3a8
push ebx
call fcn.0049a070
add esp, 0xc
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4b6142
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x3ad
push dword [ebp + 0x28]
call fcn.00499bf0
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759liburlapi.c
push 0x3ae
push dword [ebp + 0x2c]
mov dword [ebp + 0x28], 0
call fcn.00499bf0
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.004eacf5
add esp, 0x50
ret
movzx eax, al
push eax
call fcn.004b62c0
add esp, 4
test eax, eax
je 0x4b615a
push 0xa
lea eax, [esp + 0x24]
push eax
push edi
call fcn.004f701b
mov edi, eax
add esp, 0xc
lea ecx, [edi - 1]
cmp ecx, 0xfffe
ja 0x4b615a
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x4b615a
push edi
mov byte [esi], 0
push 0x531410
mov byte [eax], 0
lea eax, [esp + 0x30]
push 7
push eax
call fcn.0049b960
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.0049a070
add esp, 0x1c
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x4b6034
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004eacf5
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.004eacf5
add esp, 0x50
ret