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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x68]
push edi
xor edi, edi
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0x95], 0
test esi, esi
je 0x5da39e
cmp dword [esi], 0xbab1e
jne 0x5da39e
cmp byte [esi + 0xe2], 0
je 0x5d9d10
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], edi
jge 0x5d9d2b
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x5d9da7
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.005d8b40
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
nop
or esi, 0xffffffff
test ebx, eax
je 0x5d9d63
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x5d9d63
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x5d9d78
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x5d9d78
inc edi
mov esi, ecx
cmp esi, 0xffffffff
je 0x5d9d85
inc edx
rol eax, 1
cmp edx, 5
jb 0x5d9d50
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb8], edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x5d9d38
mov esi, dword [ebp - 0xb0]
lea ebx, [ebp - 0x68]
lea eax, [ebp - 0xa4]
push eax
push esi
call fcn.005d9b80
mov eax, dword [ebp - 0xa4]
add esp, 8
test eax, eax
js 0x5d9dcc
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp + 0x10]
add eax, edi
cmp byte [ebp + 0x20], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x5d9e18
lea eax, [ecx*8]
push eax
call dword [0x79ca20]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xac], ebx
test ebx, ebx
jne 0x5d9e11
pop edi
pop esi
lea eax, [ebx + 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x95], 1
xor edx, edx
mov dword [ebp - 0xa8], edx
test edi, edi
je 0x5d9f3e
mov eax, dword [esi + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x5d9f3e
nop dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.005d8b40
add esp, 8
mov dword [ebp - 0x9c], eax
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
mov edx, dword [ebp - 0xa8]
je 0x5d9e97
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x5d9e97
mov edi, eax
mov ecx, 1
mov eax, dword [ebp - 0xac]
mov ebx, 0x29
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [ebp - 0xa8], edx
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0x9c], eax
je 0x5d9ee4
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x5d9ee4
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0xa8]
mov ecx, 4
mov eax, dword [ebp - 0xac]
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [ebp - 0xa8], edx
cmp edi, 0xffffffff
je 0x5d9f1b
mov eax, dword [ebp - 0xb0]
push ebx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x5da06e
mov eax, dword [ebp - 0x9c]
inc esi
cmp esi, 5
jb 0x5d9e55
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x5d9e40
mov edi, dword [ebp - 0xb8]
mov ebx, dword [ebp - 0xac]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xa0], 0
jbe 0x5da04f
mov esi, dword [ebp - 0xbc]
lea ebx, [ebx + edx*8]
add ebx, 4
add esi, 4
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
mov al, dl
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [ebp - 0x9c], ecx
or dword [ebp - 0x9c], 4
and al, 2
mov eax, dword [ebp - 0x9c]
cmove eax, ecx
test dl, 4
je 0x5d9faf
push 0
push 0
push 0
push dword [esi - 4]
or eax, 0x32
mov dword [ebp - 0x9c], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xb0]
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x5da06e
mov eax, dword [esi - 4]
xor ecx, ecx
mov dword [ebx - 4], eax
xor eax, eax
mov word [ebx], ax
movzx eax, word [esi]
mov edx, eax
test al, 1
je 0x5d9ff0
mov eax, 1
mov word [ebx], ax
mov ecx, eax
movzx edx, word [esi]
movzx eax, dx
movzx edx, cx
mov edi, eax
mov dword [ebp - 0xa4], edi
mov edi, dword [ebp - 0xb8]
test al, 2
je 0x5da016
or ecx, 2
mov word [ebx], cx
movzx eax, word [esi]
movzx edx, cx
jmp 0x5da01c
mov eax, dword [ebp - 0xa4]
test al, 4
je 0x5da026
or edx, 4
mov word [ebx], dx
mov eax, dword [ebp - 0xa0]
add ebx, 8
mov edx, dword [ebp - 0xa8]
inc eax
inc edx
mov dword [ebp - 0xa0], eax
add esi, 8
mov dword [ebp - 0xa8], edx
cmp eax, dword [ebp + 0x10]
jb 0x5d9f61
test edx, edx
jne 0x5da09c
mov bl, byte [ebp + 0x20]
test bl, bl
je 0x5da309
mov ebx, dword [ebp - 0xac]
xor esi, esi
mov dword [ebp - 0xa4], esi
jmp 0x5da0b8
cmp byte [ebp - 0x95], 0
je 0x5da086
push dword [ebp - 0xac]
call dword [0x79ca24]
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xac]
push 0
push 0
push edx
push ebx
call fcn.005e2230
add esp, 0x10
mov dword [ebp - 0xa4], eax
mov esi, eax
test esi, esi
jg 0x5da0d8
mov ecx, dword [ebp - 0xb0]
push 0
push dword [ebp + 0x14]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
xor ecx, ecx
mov eax, esi
test esi, esi
cmovle eax, ecx
mov dword [ebp - 0xb4], eax
cmp dword [ebp + 0x10], ecx
jbe 0x5da22d
mov dword [ebp - 0xb4], eax
lea eax, [edi*8 + 6]
add eax, ebx
xor edi, edi
mov dword [ebp - 0xa0], eax
nop word [eax + eax]
movsx eax, word [eax]
xor ebx, ebx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xbc]
push ebx
mov dword [ebp - 0x94], ebx
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x5da199
mov ecx, dword [ebp - 0x94]
mov eax, ebx
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [ebp - 0x94]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [ebp - 0xc0], 0
movzx eax, cx
mov ebx, eax
je 0x5da199
test esi, esi
jg 0x5da199
cmp dword [ebp - 0x94], 0
je 0x5da199
inc dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
push 0
push dword [eax + 0xdc]
mov eax, dword [ebp - 0xbc]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, esi
jle 0x5da20e
mov edx, dword [ebp - 0x9c]
mov eax, ebx
or eax, 1
and dl, 1
movzx ecx, ax
movzx eax, bx
mov ebx, dword [ebp - 0x9c]
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 4
mov ebx, dword [ebp - 0x9c]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 2
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [ebp - 0xbc]
mov word [eax + edi*8 + 6], cx
mov eax, dword [ebp - 0xa0]
inc edi
add eax, 8
mov dword [ebp - 0xa0], eax
cmp edi, dword [ebp + 0x10]
jb 0x5da110
mov edi, dword [ebp - 0xb8]
test edi, edi
je 0x5da2f4
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x5da2f4
mov ebx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.005d8b40
add esp, 8
mov dword [ebp - 0xa4], eax
xor esi, esi
mov edi, 1
nop dword [eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test eax, edx
je 0x5da2dd
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x5da2b7
cmp dword [ebp - 0xc0], eax
je 0x5da2b7
test ebx, ebx
jg 0x5da2b7
cmp dword [ebp - 0x94], eax
je 0x5da2b7
inc dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
push 0
push dword [eax + 0xdc]
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [ebp - 0xa4]
inc esi
rol edi, 1
cmp esi, 5
jb 0x5da270
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x5da252
mov eax, dword [ebp - 0xb0]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov bl, byte [ebp + 0x20]
cmp byte [ebp - 0x95], 0
je 0x5da321
push dword [ebp - 0xac]
call dword [0x79ca24]
add esp, 4
mov ecx, dword [ebp - 0xc0]
test ecx, ecx
je 0x5da333
mov eax, dword [ebp - 0xb4]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x5da38b
cmp dword [ebp - 0xa8], 0
jne 0x5da38b
test bl, bl
jne 0x5da38b
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push eax
push dword [ebp - 0xb0]
call fcn.005d8600
add esp, 8
test eax, eax
jne 0x5da38b
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x5da38b
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x5da37e
test eax, eax
jns 0x5da380
mov eax, ecx
cdq
push edx
push eax
call fcn.005e25d0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006116c3
mov esp, ebp
pop ebp
ret