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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x48302c]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc8]
push ebx
push esi
mov esi, dword [esp + 0xcc]
lea ebx, [esp + 0x74]
push edi
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xf], 0
test esi, esi
je 0x407d3b
cmp dword [esi], 0xbab1e
jne 0x407d3b
cmp byte [esi + 0xe2], 0
je 0x407727
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0044e956
add esp, 0xc0
ret
cmp dword [esp + 0xdc], edi
jge 0x40774d
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0044e956
add esp, 0xc0
ret
push ebp
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x4077b6
lea eax, [esp + 0x68]
push eax
push ebp
call fcn.00406080
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test ebx, eax
je 0x407783
mov ecx, dword [esp + edx*4 + 0x68]
cmp ecx, 0xffffffff
jae 0x407783
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x407796
cmp dword [esp + edx*4 + 0x68], 0xffffffff
jae 0x407796
inc edi
jmp 0x40779b
cmp esi, 0xffffffff
je 0x4077a3
inc edx
rol eax, 1
cmp edx, 5
jb 0x407770
mov ebp, dword [ebp + 4]
mov dword [esp + 0x30], edi
test ebp, ebp
jne 0x407755
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x7c]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004075c0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x4077df
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xe0], ecx
mov eax, dword [esp + 0xdc]
add eax, edi
cmp byte [esp + 0xec], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x407837
lea eax, [ecx*8]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x407832
lea eax, [ebx + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0044e956
add esp, 0xc0
ret
mov byte [esp + 0x13], 1
xor ebp, ebp
mov dword [esp + 0x34], ebp
test edi, edi
je 0x407923
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x407923
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.00406080
add esp, 8
mov dword [esp + 0x14], eax
xor edi, edi
nop dword [eax + eax]
mov edx, 1
mov ecx, edi
shl edx, cl
or esi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x4078a1
mov edx, dword [esp + 0x20]
mov eax, 0x300
mov esi, dword [esp + edi*4 + 0x68]
mov ebx, 0x29
mov dword [edx + ebp*8], esi
mov word [edx + ebp*8 + 4], ax
inc ebp
mov dword [esp + 0x34], ebp
lea ecx, [edi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x14], eax
je 0x4078db
mov esi, dword [esp + edi*4 + 0x68]
or ebx, 0x32
push 0
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x20]
mov ecx, 0x10
mov dword [eax + ebp*8], esi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x34], ebp
cmp esi, 0xffffffff
je 0x407908
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0xdc]
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x407a39
mov eax, dword [esp + 0x14]
inc edi
cmp edi, 5
jb 0x407870
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x407854
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xdc], 0
mov dword [esp + 0x18], 0
jbe 0x407a1f
mov esi, dword [esp + 0x2c]
lea eax, [ebp*8 + 4]
add eax, ebx
add esi, 4
mov dword [esp + 0x14], eax
nop dword [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 ebx, ecx
or ebx, 4
and al, 2
cmove ebx, ecx
test dl, 4
je 0x407984
push 0
push 0
push 0
push dword [esi - 4]
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x407a39
mov ecx, dword [esp + 0x14]
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
test al, 1
je 0x4079c7
mov eax, 0x300
mov word [ecx], ax
mov edx, eax
movzx ebx, word [esi]
movzx eax, bx
movzx ebx, dx
mov edi, eax
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
test al, 2
je 0x4079ec
or edx, 0x400
mov word [ecx], dx
movzx eax, word [esi]
movzx ebx, dx
jmp 0x4079f0
mov eax, dword [esp + 0x14]
test al, 4
je 0x4079fa
or ebx, 0x10
mov word [ecx], bx
mov eax, dword [esp + 0x18]
inc ebp
inc eax
mov dword [esp + 0x34], ebp
add ecx, 8
mov dword [esp + 0x18], eax
add esi, 8
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0xdc]
jb 0x407950
test ebp, ebp
jne 0x407a57
cmp byte [esp + 0xec], 0
je 0x407cab
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x407a72
cmp byte [esp + 0x13], 0
je 0x407a4d
push dword [esp + 0x20]
call dword [0x483004]
add esp, 4
mov eax, 4
jmp 0x407819
push 0
push 0
push ebp
push dword [esp + 0x2c]
call fcn.00423680
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x18], ebx
test ebx, ebx
jg 0x407a90
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0xe4]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
xor ecx, ecx
mov eax, ebx
test ebx, ebx
cmovle eax, ecx
xor esi, esi
mov dword [esp + 0x24], eax
cmp dword [esp + 0xdc], ecx
jbe 0x407bf4
mov ebp, dword [esp + 0x20]
add ebp, 6
mov dword [esp + 0x24], eax
lea ebp, [ebp + edi*8]
mov edi, dword [esp + 0x1c]
nop
movsx eax, word [ebp]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x30]
push 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x407b68
mov ecx, dword [esp + 0x3c]
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [esp + 0x3c]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x28], 0
movzx ecx, cx
mov eax, ecx
mov dword [esp + 0x38], eax
je 0x407b68
mov dword [esp + 0x38], eax
test ebx, ebx
jg 0x407b68
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
je 0x407b68
mov eax, dword [esp + 0x2c]
inc dword [esp + 0x24]
push 0
push dword [edi + 0xdc]
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x407bdb
mov eax, dword [esp + 0x2c]
push 0
push dword [edi + 0xdc]
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebx, ebx
jle 0x407bdb
mov ebx, dword [esp + 0x38]
mov eax, ebx
mov edx, dword [esp + 0x14]
or eax, 1
movzx ecx, ax
and edx, 0x300
movzx eax, bx
mov ebx, dword [esp + 0x14]
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 0x10
mov ebx, dword [esp + 0x14]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and ebx, 0x400
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [esp + 0x2c]
mov word [eax + esi*8 + 6], cx
inc esi
add ebp, 8
cmp esi, dword [esp + 0xdc]
jb 0x407ac0
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x407c99
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x407c99
nop
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.00406080
add esp, 8
mov ebp, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebp, edx
je 0x407c82
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push 0
push dword [esp + esi*4 + 0x70]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x407c64
cmp dword [esp + 0x28], eax
je 0x407c64
test ebx, ebx
jg 0x407c64
cmp dword [esp + 0x3c], eax
je 0x407c64
inc dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x70]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x407c27
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407c10
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x407caf
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x13], 0
je 0x407cc3
push dword [esp + 0x20]
call dword [0x483004]
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x407cd1
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
cmp byte [esp + 0xe8], 0
je 0x407d34
test ebp, ebp
jne 0x407d34
cmp byte [esp + 0xec], 0
jne 0x407d34
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x28], ebp
jne 0x407d34
cmp byte [ebx + 0xe2], 0
jne 0x407d34
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004075c0
add esp, 8
test eax, eax
jne 0x407d34
mov eax, dword [esp + 0x28]
test eax, eax
je 0x407d34
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
jg 0x407d27
test eax, eax
jns 0x407d29
mov eax, ecx
cdq
push edx
push eax
call fcn.00423c90
add esp, 8
xor eax, eax
jmp 0x407819
mov ecx, dword [esp + 0xc8]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044e956
add esp, 0xc0
ret