Function at 0x4a2810
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d15e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61ad68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
mov esi, dword [0x518a28]
call esi
lea ebx, [edi + 0x10]
mov dword [ebp - 4], 0
push 0
mov ecx, ebx
mov dword [edi], vtable.QFtpPI.0
mov word [edi + 8], 0x100
mov dword [ebp - 0x18], ebx
call esi
lea esi, [ebx + 0xc]
mov byte [ebp - 4], 1
push ebx
mov ecx, esi
mov dword [ebx], vtable.QFtpDTP.0
mov dword [ebx + 8], 0
call dword [0x518f70]
lea ecx, [ebx + 0x18]
mov dword [ebx + 0x14], edi
call dword [0x518b6c]
lea ecx, [ebx + 0x3c]
mov byte [ebx + 0x30], 0
call dword [0x518b88]
push str.QFtpDTP_active_state_server
push 0x1b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
mov byte [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
call dword [0x518584]
mov edi, dword [0x518a88]
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call dword [0x518b64]
push 0
push str.1setupSocket__
push ebx
push str.2newConnection__
lea eax, [ebp - 0x14]
push esi
push eax
call dword [0x518a84]
mov ebx, dword [0x518aa4]
lea ecx, [ebp - 0x14]
add esp, 0x18
call ebx
mov esi, dword [ebp - 0x10]
add esi, 0x50
mov byte [ebp - 4], 6
push 0
mov ecx, esi
call dword [0x518f58]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + 0x58]
call dword [0x518b6c]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov eax, dword [0x518ab8]
mov dword [ecx + 0x68], eax
add ecx, 0x6c
call dword [0x518b6c]
mov eax, dword [ebp - 0x10]
mov word [eax + 0x70], 0
lea ecx, [eax + 0x74]
call dword [0x518b88]
push str.QFtpPI_socket
push 0xd
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call dword [0x518584]
lea eax, [ebp + 8]
mov byte [ebp - 4], 0xc
push eax
mov ecx, esi
call edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call dword [0x518b64]
mov edi, dword [0x518a84]
lea eax, [ebp + 8]
push 0
push str.1hostFound__
push dword [ebp - 0x10]
push str.2hostFound__
push esi
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 8]
call ebx
push 0
push str.1connected__
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push str.2connected__
push esi
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 8]
call ebx
push 0
push str.1connectionClosed__
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push str.2disconnected__
push esi
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 8]
call ebx
push 0
push str.1readyRead__
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push str.2readyRead__
push esi
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 8]
call ebx
push 0
push str.1error_QAbstractSocket::SocketError_
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push str.2error_QAbstractSocket::SocketError_
push esi
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 8]
call ebx
mov esi, dword [ebp - 0x10]
push 0
push str.1dtpConnectState_int_
push esi
lea eax, [esi + 0x10]
push str.2connectState_int_
push eax
lea eax, [ebp + 8]
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 8]
call ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4