Function at 0x57d8d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x634
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x644]
lea eax, [esp + 0x3c]
push edi
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x1a], 1
call fcn.0057d5d0
mov edx, dword [esp + 0x42]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x64c]
and edx, 0xffff
and eax, 0xffff
test ebx, ebx
lea ecx, [edx + eax + 4]
mov dword [esp + 0x1c], ecx
je 0x57da16
mov eax, dword [esi + 0xabc]
add esi, 0xaac
test eax, eax
mov dword [esp + 0x14], esi
je 0x57d94d
mov edx, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x57d949
cmp eax, 0x80
jne 0x57d94d
mov edi, esi
jmp 0x57d94f
xor edi, edi
mov eax, dword [edi]
test eax, eax
mov dword [edi + 8], eax
je 0x57d9c9
mov esi, dword [eax]
test esi, esi
je 0x57d9c9
mov ecx, ebx
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [esp + 0x28], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 4]
cmp ecx, eax
jne 0x57d989
mov dx, word [esi + 2]
cmp dx, word [esp + 0x22]
je 0x57d9f2
sub esp, 0x10
mov eax, ebx
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esi + 0x10]
call fcn.0057db80
test al, al
jne 0x57d9f2
mov eax, dword [edi + 8]
test eax, eax
je 0x57d9c9
mov eax, dword [eax + 4]
test eax, eax
mov dword [edi + 8], eax
je 0x57d9c9
mov esi, dword [eax]
test esi, esi
jne 0x57d95e
mov bl, byte [esp + 0x12]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x57db69
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x634
ret 8
mov edi, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x44]
push edi
push ecx
mov ecx, esi
call fcn.0057b6b0
mov edx, dword [eax]
push edx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x57d9c9
xor bl, bl
jmp 0x57d9cd
mov eax, dword [esi + 0xabc]
lea edi, [esi + 0xaac]
test eax, eax
mov dword [esp + 0x14], edi
je 0x57da44
mov ecx, dword [edi + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x57da40
cmp eax, 0x80
jne 0x57da44
mov ebx, edi
jmp 0x57da46
xor ebx, ebx
mov eax, dword [ebx]
mov dword [esp + 0x18], ebx
test eax, eax
mov dword [ebx + 8], eax
je 0x57db4a
mov esi, dword [eax]
test esi, esi
je 0x57db4a
mov edx, dword [esp + 0x648]
xor edi, edi
push edi
mov byte [esp + 0x17], 0
mov ebp, dword [edx + 0x48]
mov ecx, ebp
call fcn.0057b0d0
test eax, eax
je 0x57daf0
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 8]
mov dword [esp + 0x28], ebx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 4]
cmp edx, ecx
jne 0x57daa9
mov cx, word [esi + 2]
cmp cx, word [esp + 0x22]
je 0x57dad2
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x14]
cmp eax, ecx
jne 0x57dad7
mov cx, word [esi + 0x12]
cmp cx, word [esp + 0x32]
jne 0x57dad7
mov byte [esp + 0x13], 1
inc edi
mov ecx, ebp
push edi
call fcn.0057b0d0
test eax, eax
jne 0x57da7e
mov al, byte [esp + 0x13]
mov ebx, dword [esp + 0x18]
test al, al
jne 0x57db0f
mov ecx, esi
call fcn.0057b2e0
test eax, eax
je 0x57db2b
mov edi, dword [ebp]
mov ecx, eax
call fcn.005871f0
push eax
mov ecx, ebp
call dword [edi + 0x10]
test al, al
je 0x57db2b
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.0057b6b0
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [ebx + 8]
test eax, eax
je 0x57db46
mov eax, dword [eax + 4]
test eax, eax
mov dword [ebx + 8], eax
je 0x57db46
mov esi, dword [eax]
test esi, esi
jne 0x57da61
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x57db58
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x634
ret 8
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x634
ret 8