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

Disassembly:
sub esp, 0x30
mov eax, dword [0x6d6ec0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x20], ebx
push dword [esi + 0x7c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x16], 0
call fcn.004f5e20
push dword [esi + 0x7c]
mov dword [esp + 0x2c], eax
call fcn.004f5e40
mov byte [edi], 0
add esp, 8
mov dword [ebx], 0
cmp dword [esi + 0xc3c], 0
mov dword [esp + 0x28], eax
jne 0x50483a
mov ebx, 3
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0061f478
add esp, 0x30
ret
push esi
call fcn.00504570
mov edi, eax
add esp, 4
test edi, edi
jne 0x504863
mov ebx, 0x1b
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0061f478
add esp, 0x30
ret
push edi
push esi
mov dword [ebx], edi
call fcn.005061e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x504ffd
mov eax, dword [esi + 0x5cc]
test eax, eax
je 0x504897
push eax
call dword [0x6d480c]
add esp, 4
mov dword [edi + 0x164], eax
test eax, eax
je 0x504849
mov eax, dword [esi + 0x5b4]
test eax, eax
je 0x5048b5
push eax
call dword [0x6d480c]
add esp, 4
mov dword [edi + 0x168], eax
test eax, eax
je 0x504849
mov eax, dword [esi + 0x5b8]
test eax, eax
je 0x5048e3
push eax
call dword [0x6d480c]
add esp, 4
mov dword [edi + 0x4ec], eax
test eax, eax
je 0x504849
mov al, byte [esi + 0x6a9]
mov byte [edi + 0x2a2], al
push edi
push esi
call fcn.00505190
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x504ffd
mov eax, dword [edi + 0x2b0]
test byte [eax + 0x50], 1
je 0x504912
cmp byte [edi + 0x288], bl
je 0x504912
mov byte [edi + 0x28b], 1
movzx eax, word [esi + 0x158]
test ax, ax
je 0x50495e
cmp byte [esi + 0xcf4], 0
je 0x50495e
push eax
push 0x67a6d4
mov dword [edi + 0x500], eax
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0050dc50
push 0
lea eax, [esp + 0x40]
push eax
push 6
push dword [esi + 0xc18]
call fcn.00536f50
add esp, 0x20
test eax, eax
jne 0x504849
push edi
push esi
call fcn.005055c0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x504ffd
mov eax, dword [edi + 0x2ac]
mov ecx, str.anonymous
mov ebp, str.ftp_example.com
test byte [eax + 0x50], 0x20
je 0x504990
cmp dword [esi + 0xcd8], ebx
je 0x504997
mov ecx, 0x6a5e52
mov ebp, ecx
cmp dword [edi + 0x158], ebx
jne 0x5049b7
push ecx
call dword [0x6d480c]
add esp, 4
mov dword [edi + 0x158], eax
test eax, eax
je 0x504849
cmp dword [edi + 0x15c], ebx
jne 0x5049d9
push ebp
call dword [0x6d480c]
add esp, 4
mov dword [edi + 0x15c], eax
test eax, eax
mov ecx, 0x1b
cmove ebx, ecx
test ebx, ebx
jne 0x504ffd
push dword [esi + 0x3a0]
push edi
push esi
call fcn.00505a20
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x504ffd
cmp byte [edi + 0x288], al
je 0x504a17
lea eax, [edi + 0x70]
push eax
call fcn.005393c0
add esp, 4
test eax, eax
jne 0x504fff
cmp byte [edi + 0x289], 0
je 0x504a34
lea eax, [edi + 0x50]
push eax
call fcn.005393c0
add esp, 4
test eax, eax
jne 0x504fff
cmp byte [edi + 0x291], 0
je 0x504a72
lea eax, [edi + 0x40]
push eax
call fcn.005393c0
add esp, 4
test eax, eax
jne 0x504fff
cmp byte [edi + 0x291], al
je 0x504a72
push dword [edi + 0x30]
push dword [edi + 0x48]
call fcn.0050f350
add esp, 8
test eax, eax
je 0x504a72
mov byte [edi + 0x291], 0
mov cl, byte [edi + 0x292]
test cl, cl
je 0x504a93
mov eax, dword [edi + 0x504]
cmp eax, dword [edi + 0x500]
jne 0x504a93
mov byte [edi + 0x292], 0
xor cl, cl
cmp byte [edi + 0x291], 0
jne 0x504aa0
test cl, cl
je 0x504ab0
cmp byte [edi + 0x288], 0
je 0x504ab0
mov byte [edi + 0x28b], 1
mov eax, dword [edi + 0x2ac]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x504ad4
push edi
push esi
call ecx
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x504ffd
mov eax, dword [edi + 0x2ac]
cmp dword [edi + 0xec], 0
jge 0x504ae6
mov eax, dword [eax + 0x44]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0x2ac]
test byte [eax + 0x50], 0x10
je 0x504b91
push 0
push edi
push esi
call fcn.0050ab30
mov eax, dword [edi + 0x2ac]
lea ecx, [esp + 0x1e]
push ecx
push esi
mov eax, dword [eax + 0x14]
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x504b72
push edi
push esi
call fcn.004f58c0
push esi
call fcn.004ff1e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x504ffd
push esi
call fcn.00506d70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x504b69
mov eax, dword [edi + 0x2ac]
push 0
push ebx
push esi
mov eax, dword [eax + 0xc]
call eax
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0061f478
add esp, 0x30
ret
push esi
call fcn.00513a50
add esp, 4
push edi
push esi
call fcn.00503fb0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0061f478
add esp, 0x30
ret
mov dword [edi + 0x1a8], 0x507320
mov dword [edi + 0x1b0], 0x507380
mov dword [edi + 0x1ac], 0x507320
mov dword [edi + 0x1b4], 0x507380
mov al, byte [esi + 0x6a2]
push esi
mov byte [edi + 0x29f], al
call fcn.00501b60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x504ffd
lea eax, [esp + 0x2c]
push eax
call fcn.004fb190
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x2c], xmm0
cmp dword [esi + 0x84], ebx
je 0x504c02
push 2
push 5
push esi
call fcn.00512580
add esp, 0xc
mov ecx, dword [esi + 0x850]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [eax], xmm0
call fcn.004fb240
add esp, 0x20
mov ebp, eax
cmp dword [esi + 0x84], 0
mov ebx, edx
je 0x504c41
push 5
push esi
call fcn.005125c0
add esp, 8
test ebx, ebx
jl 0x504d1f
jg 0x504c57
cmp ebp, 0x3e8
jb 0x504d1f
push 0x504790
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esi + 0x850]
push esi
call fcn.004ff740
add esp, 0x10
test al, al
je 0x504ce6
nop dword [eax]
mov ebx, dword [esp + 0x14]
cmp dword [ebx + 0x310], 0
jne 0x504cc9
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x504ca5
push eax
push esi
call fcn.00515650
add esp, 8
mov dword [ebx + 0x20], 0
push ebx
call fcn.00521670
push ebx
call fcn.00521170
cmp byte [ebx + 0x515], 0
setne al
movzx eax, al
push eax
push ebx
push esi
call fcn.004ff420
add esp, 0x14
push 0x504790
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x850]
push esi
call fcn.004ff740
add esp, 0x10
test al, al
jne 0x504c80
cmp dword [esi + 0x84], 0
je 0x504cfc
push 2
push 5
push esi
call fcn.00512580
add esp, 0xc
mov eax, dword [esi + 0x850]
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [eax + 0x30], xmm0
cmp dword [esi + 0x84], 0
je 0x504d1f
push 5
push esi
call fcn.005125c0
add esp, 8
cmp byte [esi + 0x698], 0
je 0x504d35
cmp dword [esi + 0x8b8], 0
je 0x504f49
cmp byte [esi + 0x679], 0
jne 0x504f49
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x20]
push eax
push edi
push esi
call fcn.00502eb0
add esp, 0x14
test al, al
je 0x504f49
cmp dword [edi + 0x158], 0
mov ebx, dword [esp + 0x18]
je 0x504dcb
push dword [ebx + 0x158]
call dword [0x6d4804]
push dword [ebx + 0x15c]
mov dword [ebx + 0x158], 0
call dword [0x6d4804]
mov dword [ebx + 0x15c], 0
add esp, 8
mov eax, dword [edi + 0x158]
mov dword [ebx + 0x158], eax
mov eax, dword [edi + 0x15c]
mov dword [ebx + 0x15c], eax
mov dword [edi + 0x158], 0
mov dword [edi + 0x15c], 0
mov al, byte [edi + 0x28a]
mov byte [ebx + 0x28a], al
test al, al
je 0x504e74
push dword [ebx + 0x88]
call dword [0x6d4804]
push dword [ebx + 0x68]
mov dword [ebx + 0x88], 0
call dword [0x6d4804]
push dword [ebx + 0x8c]
mov dword [ebx + 0x68], 0
call dword [0x6d4804]
push dword [ebx + 0x6c]
mov dword [ebx + 0x8c], 0
call dword [0x6d4804]
mov dword [ebx + 0x6c], 0
add esp, 0x10
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x88], eax
mov eax, dword [edi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, dword [edi + 0x8c]
mov dword [ebx + 0x8c], eax
mov eax, dword [edi + 0x6c]
mov dword [ebx + 0x6c], eax
mov dword [edi + 0x88], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x6c], 0
push dword [ebx + 0x28]
call dword [0x6d4804]
push dword [ebx + 0x40]
mov dword [ebx + 0x28], 0
call dword [0x6d4804]
mov dword [ebx + 0x40], 0
movups xmm0, xmmword [edi + 0x28]
movups xmmword [ebx + 0x28], xmm0
mov dword [edi + 0x28], 0
movups xmm0, xmmword [edi + 0x40]
mov dword [edi + 0x2c], 0
movups xmmword [ebx + 0x40], xmm0
mov eax, dword [edi + 0x504]
mov dword [edi + 0x40], 0
push dword [ebx + 0x38]
mov dword [ebx + 0x504], eax
mov eax, dword [edi + 0x500]
mov dword [ebx + 0x500], eax
call dword [0x6d4804]
mov dword [ebx + 0x38], 0
mov eax, dword [edi + 0x38]
mov dword [ebx + 0x38], eax
push edi
mov dword [edi + 0x38], 0
push esi
mov byte [ebx + 0x28f], 1
call fcn.00503ab0
mov eax, dword [esp + 0x34]
add esp, 0x14
mov dword [eax], ebx
cmp dword [ebx + 0x58], 0
je 0x504f10
mov eax, dword [ebx + 0x5c]
jmp 0x504f1e
cmp dword [ebx + 0x78], 0
je 0x504f1b
mov eax, dword [ebx + 0x7c]
jmp 0x504f1e
mov eax, dword [ebx + 0x34]
cmp byte [ebx + 0x28d], 0
mov ecx, str.host
push eax
mov eax, str.proxy
cmove eax, ecx
push eax
push str.Re_using_existing_connection_with__s__s
push esi
call fcn.00508430
add esp, 0x10
mov edi, ebx
jmp 0x5050de
mov eax, dword [edi + 0x2ac]
test dword [eax + 0x50], 0x100
je 0x504f68
cmp byte [esi + 0x6a3], 0
je 0x504f68
mov byte [edi + 0x2a0], 1
cmp byte [esp + 0x12], 0
jne 0x504fd9
push dword [esi + 0x850]
push edi
push esi
call fcn.004ff690
mov ebp, dword [esp + 0x30]
add esp, 0xc
test ebp, ebp
je 0x505012
test eax, eax
je 0x505012
cmp dword [eax + 4], ebp
jb 0x505012
push eax
push esi
call fcn.004ff4a0
add esp, 8
mov ebx, eax
cmp dword [esi + 0x84], 0
je 0x504fb8
push 5
push esi
call fcn.005125c0
add esp, 8
test ebx, ebx
je 0x504fca
push 0
push ebx
push esi
call fcn.00503d50
add esp, 0xc
jmp 0x505026
push ebp
push str.No_more_connections_allowed_to_host:__zu
push esi
call fcn.00508430
add esp, 0xc
push str.No_connections_available.
push esi
call fcn.00508430
push edi
push esi
call fcn.00503ab0
mov eax, dword [esp + 0x30]
add esp, 0x10
mov ebx, 0x59
mov dword [eax], 0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0061f478
add esp, 0x30
ret
cmp dword [esi + 0x84], 0
je 0x505026
push 5
push esi
call fcn.005125c0
add esp, 8
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x505058
push esi
call fcn.004ffae0
add esp, 4
cmp eax, ebx
jb 0x505058
push esi
call fcn.004ff550
add esp, 4
test eax, eax
je 0x505124
push 0
push eax
push esi
call fcn.00503d50
add esp, 0xc
push edi
push esi
call fcn.00501a40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x504ffd
push edi
push esi
call fcn.004f58c0
push esi
call fcn.004ff1e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x504ffd
test byte [esi + 0x8f0], 8
je 0x5050ad
cmp byte [esi + 0x8f8], al
je 0x5050ad
push str.NTLM_picked_AND_auth_done_set__clear_picked
push esi
call fcn.00508430
add esp, 8
mov dword [esi + 0x8f0], ebx
mov byte [esi + 0x8f8], bl
test byte [esi + 0x900], 8
je 0x5050de
cmp byte [esi + 0x908], 0
je 0x5050de
push str.NTLM_proxy_picked_AND_auth_done_set__clear_picked
push esi
call fcn.00508430
add esp, 8
mov dword [esi + 0x900], 0
mov byte [esi + 0x908], 0
push edi
push esi
call fcn.00503fb0
push esi
call fcn.00506d70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x504ffd
mov eax, dword [esp + 0x1c]
cmp byte [edi + 0x28f], bl
je 0x505153
push esi
mov byte [eax], bl
call fcn.00507bc0
add esp, 4
mov ebx, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0061f478
add esp, 0x30
ret
cmp dword [esi + 0x658], 0
je 0x505140
push str.Allowing_DoH_to_override_max_connection_limit
push esi
call fcn.00508430
add esp, 8
jmp 0x505058
push str.No_connections_available_in_cache
push esi
call fcn.00508430
add esp, 8
jmp 0x504fd9
push eax
push edi
push esi
call fcn.00506ab0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x504ffd
push esi
call fcn.00507bc0
mov ecx, dword [esp + 0x40]
add esp, 4
mov ebx, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0061f478
add esp, 0x30
ret