Function at 0x4477c8
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0x28
mov eax, 0x4cd3dd
call fcn.0040193b
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x18]
xor ebx, ebx
push ecx
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
call fcn.00446d5b
test eax, eax
je 0x447a5b
mov dword [ebp - 0x20], vtable.micro::files::QFile.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp esi, 1
je 0x44789f
cmp esi, 2
je 0x44789f
cmp esi, 4
jne 0x447836
push 0x1001
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004bac83
mov edi, dword [ebp + 0x10]
mov dword [ebp + 8], edi
jmp 0x4478b5
cmp esi, 6
jne 0x447859
push 0x3001
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004bac83
push 2
push ebx
push ebx
lea ecx, [ebp - 0x20]
call fcn.004bad95
jmp 0x44782e
cmp esi, 5
jne 0x447879
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004bac83
lea ecx, [ebp - 0x20]
call fcn.004bae28
mov dword [ebp + 8], eax
mov ebx, edx
jmp 0x4478b8
cmp esi, 7
jne 0x44782e
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004bac83
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x20]
push ebx
push ebx
push dword [eax + 0x440]
call fcn.004bad95
jmp 0x44786a
push 0x1001
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004bac83
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov ebx, dword [ebp + 0x14]
and dword [ebp + 0x1c], 0
lea ecx, [ebp - 0x34]
and dword [ebp + 0x18], 0
mov edi, 0x4000
push edi
call fcn.0041eab3
mov byte [ebp - 4], 1
cmp esi, 5
je 0x44798a
cmp esi, 7
je 0x44798a
mov esi, dword [ebp - 0x14]
jmp 0x4478ee
mov edi, 0x4000
cmp dword [esi + 0x14], 1
jne 0x447984
cmp dword [esi + 0x1c], 0
je 0x44790a
mov ecx, dword [ebp - 0x24]
push esi
push edi
call fcn.004465be
jmp 0x447919
push 0
push edi
push dword [ebp - 0x24]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x447984
test edi, edi
jle 0x447984
push edi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.004bae6a
test eax, eax
je 0x447984
mov eax, edi
mov edi, dword [ebp - 0x10]
cdq
mov ecx, edx
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x1c]
add edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], edx
adc dword [ebp + 0x18], ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4478e9
mov eax, dword [ecx]
push ebx
push dword [ebp + 8]
push dword [ebp + 0x18]
push edx
call dword [eax + 0x14]
mov ecx, dword [edi + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edi, 0x4000
test al, al
je 0x4478ee
push esi
jmp 0x447a30
push edi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.004bae44
mov edi, dword [ebp - 0x14]
jmp 0x447a25
cmp dword [edi + 0x14], 2
je 0x4479a8
xor eax, eax
jmp 0x4479d1
cmp dword [edi + 0x1c], 0
je 0x4479ba
mov ecx, dword [ebp - 0x24]
push edi
push esi
call fcn.004466ce
jmp 0x4479c9
push 0
push esi
push dword [ebp - 0x24]
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
cmp eax, esi
jb 0x447a2f
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x10]
add edx, esi
mov dword [ebp + 0x1c], edx
adc dword [ebp + 0x18], 0
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x447a15
mov eax, dword [ecx]
push ebx
push dword [ebp + 8]
push dword [ebp + 0x18]
push edx
call dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
push 0
push esi
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
jne 0x447a2f
push 0x4000
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.004bae44
mov esi, eax
test esi, esi
jne 0x44799e
push edi
call fcn.00447582
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
mov esi, eax
mov dword [ebp - 0x34], vtable.micro::utils::QBuffer.0
call fcn.004044fd
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.micro::files::QFile.0
call fcn.004baeaf
mov eax, esi
call fcn.00401a13
ret 0x1c