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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x70b514]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp + 0x18]
lea esi, [ebp - 0x68]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], esi
mov byte [ebp - 0x95], 0
test eax, eax
je 0x5e4849
cmp dword [eax], 0xbab1e
jne 0x5e4849
cmp byte [eax + 0xe2], 0
je 0x5e414e
lea eax, [edi + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jns 0x5e416c
pop ebx
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x5e41e8
nop dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.005e2f70
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test ebx, eax
je 0x5e41a9
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x5e41a9
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x5e41bc
cmp dword [ebp + edx*4 - 0x18], 0xffffffff
jae 0x5e41bc
inc edi
jmp 0x5e41c1
cmp esi, 0xffffffff
je 0x5e41c9
inc edx
rol eax, 1
cmp edx, 5
jb 0x5e4196
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xbc], edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x5e4180
mov ebx, dword [ebp + 0x14]
lea esi, [ebp - 0x68]
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xa8]
call fcn.005e3fd0
mov eax, dword [ebp - 0xa4]
add esp, 8
test eax, eax
js 0x5e420f
cmp eax, ebx
cmovl ebx, eax
mov dword [ebp + 0x14], ebx
mov eax, dword [ebp + 0x10]
add eax, edi
cmp byte [ebp + 0x20], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x5e425b
lea eax, [ecx*8]
push eax
call dword [0x70b4c4]
mov esi, eax
add esp, 4
mov dword [ebp - 0xb0], esi
test esi, esi
jne 0x5e4254
pop ebx
pop edi
lea eax, [esi + 3]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x95], 1
xor ebx, ebx
mov dword [ebp - 0xac], ebx
test edi, edi
je 0x5e4382
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x5e4382
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.005e2f70
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
je 0x5e42d9
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x5e42d9
mov ecx, dword [ebp - 0xb0]
mov edi, eax
mov eax, dword [ebp - 0xac]
mov edx, 0x300
mov ebx, 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xac], eax
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0x9c], eax
je 0x5e4328
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x5e4328
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xac]
mov edx, 0x10
mov ecx, dword [ebp - 0xb0]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xac], eax
jmp 0x5e432d
cmp edi, 0xffffffff
je 0x5e4359
mov eax, dword [ebp - 0xa8]
push ebx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x5e44df
mov eax, dword [ebp - 0x9c]
inc esi
cmp esi, 5
jb 0x5e4297
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x5e4282
mov edi, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xa4], 0
jbe 0x5e44c8
lea eax, [esi + 4]
mov esi, dword [ebp - 0xb8]
lea eax, [eax + ebx*8]
add esi, 4
mov dword [ebp - 0xa0], eax
nop dword [eax + eax]
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 0x5e43fe
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 - 0xa8]
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x5e44df
mov ecx, dword [ebp - 0xa0]
xor edx, edx
mov eax, dword [esi - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
movzx eax, word [esi]
mov ebx, eax
mov dword [ebp - 0xa0], ebx
mov ebx, dword [ebp - 0xac]
test al, 1
je 0x5e4453
mov eax, 0x300
mov word [ecx], ax
mov edx, eax
movzx eax, word [esi]
jmp 0x5e4459
mov eax, dword [ebp - 0xa0]
movzx edi, dx
movzx eax, ax
mov dword [ebp - 0xa0], edi
mov edi, eax
mov dword [ebp - 0x9c], edi
mov edi, dword [ebp - 0xbc]
test al, 2
je 0x5e4488
or edx, 0x400
mov word [ecx], dx
movzx eax, dx
movzx edx, word [esi]
jmp 0x5e4494
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
test dl, 4
je 0x5e449f
or eax, 0x10
mov word [ecx], ax
mov eax, dword [ebp - 0xa4]
inc ebx
inc eax
mov dword [ebp - 0xac], ebx
add ecx, 8
mov dword [ebp - 0xa4], eax
add esi, 8
mov dword [ebp - 0xa0], ecx
cmp eax, dword [ebp + 0x10]
jb 0x5e43b0
test ebx, ebx
jne 0x5e450d
cmp byte [ebp + 0x20], bl
je 0x5e47bc
xor esi, esi
mov dword [ebp - 0xa0], esi
jmp 0x5e452c
cmp byte [ebp - 0x95], 0
je 0x5e44f7
push dword [ebp - 0xb0]
call dword [0x70b4c8]
add esp, 4
pop ebx
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push dword [ebp - 0xb0]
call fcn.005fe720
mov esi, eax
add esp, 0x10
mov dword [ebp - 0xa0], esi
test esi, esi
jg 0x5e454a
mov ecx, dword [ebp - 0xa8]
push 0
push dword [ebp + 0x14]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test esi, esi
jns 0x5e4562
pop ebx
pop edi
mov eax, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, esi
test esi, esi
cmovle eax, ecx
mov dword [ebp - 0xb4], eax
cmp dword [ebp + 0x10], ecx
jbe 0x5e46dc
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb0]
lea eax, [eax + edi*8]
add eax, 6
xor edi, edi
mov dword [ebp - 0xa4], eax
movsx eax, word [eax]
xor ebx, ebx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xb8]
push ebx
mov dword [ebp - 0x94], ebx
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x5e463c
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 0x5e463c
test esi, esi
jg 0x5e463c
cmp dword [ebp - 0x94], 0
je 0x5e463c
mov eax, dword [ebp - 0xa8]
inc dword [ebp - 0xb4]
push 0
push dword [eax + 0xdc]
mov eax, dword [ebp - 0xb8]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x5e46b7
mov eax, dword [ebp - 0xa8]
push 0
push dword [eax + 0xdc]
mov eax, dword [ebp - 0xb8]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, esi
jle 0x5e46b7
mov edx, dword [ebp - 0x9c]
mov eax, ebx
or eax, 1
and edx, 0x300
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, 0x10
mov ebx, dword [ebp - 0x9c]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and ebx, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [ebp - 0xb8]
mov word [eax + edi*8 + 6], cx
mov eax, dword [ebp - 0xa4]
inc edi
add eax, 8
mov dword [ebp - 0xa4], eax
cmp edi, dword [ebp + 0x10]
jb 0x5e4594
mov edi, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xac]
test edi, edi
je 0x5e47aa
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x5e47aa
mov ebx, dword [ebp - 0xa0]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.005e2f70
add esp, 8
mov dword [ebp - 0xa0], eax
xor esi, esi
mov edi, 1
nop dword [eax + eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test eax, edx
je 0x5e478d
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 0x5e4767
cmp dword [ebp - 0xc0], eax
je 0x5e4767
test ebx, ebx
jg 0x5e4767
cmp dword [ebp - 0x94], eax
je 0x5e4767
inc dword [ebp - 0xb4]
mov eax, dword [ebp - 0xa8]
push 0
push dword [eax + 0xdc]
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [ebp - 0xa0]
inc esi
rol edi, 1
cmp esi, 5
jb 0x5e4720
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x5e4701
mov ebx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa8]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x95], 0
je 0x5e47d4
push dword [ebp - 0xb0]
call dword [0x70b4c8]
add esp, 4
mov ecx, dword [ebp - 0xc0]
test ecx, ecx
je 0x5e47e6
mov eax, dword [ebp - 0xb4]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x5e4836
test ebx, ebx
jne 0x5e4836
cmp byte [ebp + 0x20], bl
jne 0x5e4836
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], ebx
push eax
push dword [ebp - 0xa8]
call fcn.005e2a30
add esp, 8
test eax, eax
jne 0x5e4836
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x5e4836
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x5e4829
test eax, eax
jns 0x5e482b
mov eax, ecx
cdq
push edx
push eax
call fcn.005feb50
add esp, 8
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00627eaa
mov esp, ebp
pop ebp
ret