Function at 0x4c0470
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x52d630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x28], ecx
push edi
mov ecx, esi
call fcn.004dee90
mov edi, dword [esp + 0x6c]
cmp eax, 1
je 0x4c04b2
cmp eax, 2
je 0x4c04b2
cmp eax, 8
jne 0x4c05bc
mov ecx, edi
call fcn.004dee90
cmp eax, 1
je 0x4c04cc
cmp eax, 2
je 0x4c04cc
cmp eax, 8
jne 0x4c05bc
mov ecx, esi
call fcn.004e3890
cmp eax, 1
jne 0x4c058f
push eax
mov ecx, esi
call fcn.004390c0
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4c0dfb
mov ecx, edi
call fcn.004e3890
cmp eax, 1
jne 0x4c0521
push 0
mov ecx, edi
call fcn.004390c0
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4c0dfb
push 1
mov ecx, esi
call fcn.0042d290
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4c0dfb
push 1
mov ecx, edi
call fcn.0042d290
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4c0dfb
mov eax, dword [0x569c90]
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x84]
mov byte [esp + 0x60], 2
test eax, eax
lea ecx, [esp + 0x10]
je 0x4c05fb
push str.TYPE_I
jmp 0x4c0600
mov ecx, edi
call fcn.004e3890
cmp eax, 1
jne 0x4c05bc
push eax
mov ecx, edi
call fcn.004390c0
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x10000
je 0x4c0521
jmp 0x4c0dfb
push 0
mov ecx, esi
call fcn.0042d290
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4c0dfb
push 0
mov ecx, edi
call fcn.0042d290
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x10000
je 0x4c055b
jmp 0x4c0dfb
push str.TYPE_A
call fcn.00507ec3
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push 0
lea eax, [esp + 0x2c]
push 1
push eax
push ecx
mov ecx, esi
call dword [edx + 0x94]
mov ecx, dword [esp + 0x28]
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x30000
jne 0x4c0635
mov ebx, eax
jmp 0x4c065c
cmp ecx, 0x1f4
jl 0x4c0644
mov ebx, 0x30007
jmp 0x4c065c
xor ebx, ebx
cmp ecx, 0x190
setl bl
dec ebx
and ebx, 0x20001
add ebx, 0x10001
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x30000
jne 0x4c0677
push ecx
mov ecx, esi
call fcn.00432f40
jmp 0x4c0826
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
push 0
lea eax, [esp + 0x2c]
push 1
push eax
push ecx
mov ecx, edi
call dword [edx + 0x94]
mov ecx, dword [esp + 0x28]
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x30000
jne 0x4c06a7
mov ebx, eax
jmp 0x4c06ce
cmp ecx, 0x1f4
jl 0x4c06b6
mov ebx, 0x30007
jmp 0x4c06ce
xor ebx, ebx
cmp ecx, 0x190
setl bl
dec ebx
and ebx, 0x20001
add ebx, 0x10001
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x30000
jne 0x4c06e9
push ecx
mov ecx, edi
call fcn.00432f40
jmp 0x4c0826
mov edx, dword [esi]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x2c]
push 1
push ecx
push str.PASV
mov ecx, esi
call dword [edx + 0x94]
mov ebx, eax
mov edx, ebx
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4c0826
lea eax, [esp + 0x40]
lea edx, [esp + 0x68]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
call fcn.00507aaf
call fcn.00435b50
add esp, 8
test eax, eax
jne 0x4c074f
push 2
push 0x1517
mov ecx, esi
call fcn.004de740
jmp 0x4c07df
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str.PORT__u__u__u__u__u__u
push eax
call fcn.005054dc
mov edx, dword [edi]
add esp, 0x20
lea eax, [esp + 0x68]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push 1
push ecx
push eax
mov ecx, edi
call dword [edx + 0x94]
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x30000
jne 0x4c07ae
mov ebx, eax
jmp 0x4c07d7
mov eax, dword [esp + 0x28]
cmp eax, 0x1f4
jl 0x4c07c0
mov ebx, 0x30007
jmp 0x4c07d7
xor ebx, ebx
cmp eax, 0x190
setl bl
dec ebx
and ebx, 0x20001
add ebx, 0x10001
cmp ebx, 0x30001
jne 0x4c0816
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 1
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 0
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], 0xffffffff
call fcn.00507d3a
mov eax, 0x30002
jmp 0x4c0dfb
mov edx, ebx
and edx, 0xffff0000
cmp edx, 0x10000
je 0x4c085a
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 1
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 0
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], 0xffffffff
call fcn.00507d3a
mov eax, ebx
jmp 0x4c0dfb
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4c0866
mov ebp, edi
jmp 0x4c086a
mov ebp, esi
mov esi, edi
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.004e2710
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x64], 3
call fcn.004dedd0
push eax
lea ecx, [esp + 0x40]
call fcn.0040dc00
lea ecx, [esp + 0x6c]
mov byte [esp + 0x60], 5
call fcn.00507d3a
mov ebx, dword [esp + 0x74]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x8c], esp
push ebx
call fcn.00507da8
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x44]
call fcn.0040dde0
lea edx, [esp + 0x84]
mov ecx, ebp
push edx
mov byte [esp + 0x64], 6
call fcn.004e2710
mov eax, dword [eax]
mov ecx, ebp
push eax
mov byte [esp + 0x64], 7
call fcn.004dedd0
push eax
lea ecx, [esp + 0x38]
call fcn.0040dc00
lea ecx, [esp + 0x84]
mov byte [esp + 0x60], 9
call fcn.00507d3a
mov eax, dword [esp + 0x78]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
call fcn.00507da8
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040dde0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x64], 0xa
call fcn.00507aaf
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x64], 0xb
call fcn.00507aaf
mov ecx, 0x571fb8
mov byte [esp + 0x60], 0xc
call fcn.00482af0
mov edi, eax
push ecx
neg edi
sbb edi, edi
inc edi
mov ecx, esp
mov dword [esp + 0x74], esp
push ebx
call fcn.00507da8
call fcn.0040ecf0
add esp, 4
cmp eax, 4
jne 0x4c097b
mov edi, 1
mov ecx, 0x571fb8
call fcn.00482af0
mov edx, dword [esp + 0x78]
mov ebx, eax
neg ebx
push ecx
sbb ebx, ebx
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
inc ebx
call fcn.00507da8
call fcn.0040ecf0
add esp, 4
cmp eax, 4
jne 0x4c09af
mov ebx, 1
test edi, edi
je 0x4c0a2d
mov eax, dword [0x569c90]
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x78]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x68], 0xd
call fcn.004dedd0
push eax
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
call fcn.00507aaf
call fcn.0040e680
add esp, 0x10
lea edx, [esp + 0x78]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push edx
call fcn.00507aaf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov edi, eax
mov byte [esp + 0x60], 0xc
mov ecx, edi
and ecx, 0xffff0000
cmp ecx, 0x10000
lea ecx, [esp + 0x78]
jne 0x4c0c21
call fcn.00507d3a
test ebx, ebx
je 0x4c0aa9
mov edx, dword [0x569c90]
mov dword [esp + 0x78], edx
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x68], 0xe
call fcn.004dedd0
push eax
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call fcn.00507aaf
call fcn.0040e680
add esp, 0x10
lea eax, [esp + 0x78]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
call fcn.00507aaf
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x2c]
mov edi, eax
and eax, 0xffff0000
cmp eax, 0x10000
lea ecx, [esp + 0x78]
mov byte [esp + 0x60], 0xc
jne 0x4c0c21
call fcn.00507d3a
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x29c]
push ecx
mov ecx, esi
call fcn.004393d0
mov edx, dword [ebx + 0x29c]
mov ecx, ebp
push edx
call fcn.004393d0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov edx, eax
or edx, ecx
je 0x4c0d13
mov edx, dword [0x569c90]
mov dword [esp + 0x78], edx
push ecx
push eax
lea eax, [esp + 0x80]
push str.REST__I64u
push eax
mov byte [esp + 0x70], 0xf
call fcn.005054dc
mov eax, dword [esp + 0x98]
add esp, 0x10
test eax, eax
je 0x4c0bb9
mov edx, dword [esi]
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x2c]
push 1
push ecx
push eax
mov ecx, esi
call dword [edx + 0x94]
mov edi, eax
mov ecx, edi
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4c0c18
lea edx, [esp + 0x18]
lea eax, [esp + 0x74]
push edx
push str.APPE
push eax
call fcn.00508043
mov edi, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x74]
push str.RETR
push edx
mov byte [esp + 0x6c], 0x10
call fcn.00508043
mov eax, dword [eax]
push edi
push eax
push ebp
push esi
mov ecx, ebx
mov byte [esp + 0x70], 0x11
call fcn.004bffb0
lea ecx, [esp + 0x70]
mov edi, eax
mov byte [esp + 0x60], 0x10
call fcn.00507d3a
lea ecx, [esp + 0x74]
mov byte [esp + 0x60], 0xf
call fcn.00507d3a
mov eax, edi
and eax, 0xffff0000
cmp eax, 0x10000
je 0x4c0c18
cmp edi, 0x30002
jne 0x4c0c18
mov edx, dword [esi]
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x2c]
push 1
push ecx
push eax
mov ecx, esi
call dword [edx + 0x94]
mov edi, eax
mov ecx, edi
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4c0c18
mov edx, dword [ebp]
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x2c]
push 1
push ecx
push eax
mov ecx, ebp
call dword [edx + 0x94]
mov edi, eax
mov ecx, edi
and ecx, 0xffff0000
cmp ecx, 0x10000
je 0x4c0cae
mov byte [esp + 0x60], 0xc
lea ecx, [esp + 0x78]
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 0xb
call fcn.00507d3a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 0xa
call fcn.00507d3a
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 9
call fcn.00507d3a
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 6
call fcn.00507d3a
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 5
call fcn.00507d3a
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.00507d3a
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 1
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 0
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], 0xffffffff
call fcn.00507d3a
mov eax, edi
jmp 0x4c0dfb
lea edx, [esp + 0x18]
lea eax, [esp + 0x74]
push edx
push str.STOR
push eax
call fcn.00508043
mov edi, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x74]
push str.RETR
push edx
mov byte [esp + 0x6c], 0x12
call fcn.00508043
mov eax, dword [eax]
push edi
push eax
push ebp
push esi
mov ecx, ebx
mov byte [esp + 0x70], 0x13
call fcn.004bffb0
lea ecx, [esp + 0x70]
mov esi, eax
mov byte [esp + 0x60], 0x12
call fcn.00507d3a
lea ecx, [esp + 0x74]
mov byte [esp + 0x60], 0xf
call fcn.00507d3a
lea ecx, [esp + 0x78]
jmp 0x4c0d6e
lea eax, [esp + 0x18]
lea ecx, [esp + 0x7c]
push eax
push str.STOR
push ecx
call fcn.00508043
mov edi, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x8c]
push str.RETR
push eax
mov byte [esp + 0x6c], 0x14
call fcn.00508043
mov eax, dword [eax]
push edi
push eax
push ebp
push esi
mov ecx, ebx
mov byte [esp + 0x70], 0x15
call fcn.004bffb0
lea ecx, [esp + 0x88]
mov esi, eax
mov byte [esp + 0x60], 0x14
call fcn.00507d3a
lea ecx, [esp + 0x7c]
mov byte [esp + 0x60], 0xc
call fcn.00507d3a
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 0xb
call fcn.00507d3a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 0xa
call fcn.00507d3a
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 9
call fcn.00507d3a
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 6
call fcn.00507d3a
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 5
call fcn.00507d3a
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.00507d3a
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 1
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 0
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], 0xffffffff
call fcn.00507d3a
mov eax, esi
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0x24