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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x1012604c]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd4]
push ebx
mov ebx, dword [esp + 0xd4]
push esi
push edi
xor edi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xec]
lea esi, [esp + 0x84]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0xf], 0
test ebx, ebx
je 0x1007f970
cmp dword [ebx], 0xbab1e
jne 0x1007f970
cmp byte [ebx + 0xe3], 0
je 0x1007f34a
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.100ca7cd
add esp, 0xcc
ret
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x38], eax
test eax, eax
jns 0x1007f376
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.100ca7cd
add esp, 0xcc
ret
push ebp
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x1007f3e0
nop
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.1007da20
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test ebx, eax
je 0x1007f3aa
mov ecx, dword [esp + edx*4 + 0x74]
cmp ecx, 0xffffffff
jae 0x1007f3aa
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x1007f3bd
cmp dword [esp + edx*4 + 0x74], 0xffffffff
jae 0x1007f3bd
inc edi
jmp 0x1007f3c2
cmp esi, 0xffffffff
je 0x1007f3ca
inc edx
rol eax, 1
cmp edx, 5
jb 0x1007f397
mov ebp, dword [ebp + 4]
mov dword [esp + 0x30], edi
test ebp, ebp
jne 0x1007f380
mov ebx, dword [esp + 0x14]
lea esi, [esp + 0x88]
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.1007f1c0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
js 0x1007f403
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0xe8]
add eax, edi
cmp byte [esp + 0xf8], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x1007f45b
lea eax, [ecx*8]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x1007f456
lea eax, [esi + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.100ca7cd
add esp, 0xcc
ret
mov byte [esp + 0x13], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebp, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], eax
test edi, edi
je 0x1007f556
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1007f556
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.1007da20
add esp, 8
mov dword [esp + 0x18], eax
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x1007f4cd
mov eax, dword [esp + esi*4 + 0x74]
cmp eax, 0xffffffff
jae 0x1007f4cd
mov edi, eax
mov ecx, 0x300
mov eax, dword [esp + 0x1c]
mov ebx, 0x29
mov dword [eax + ebp*8], edi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x38], ebp
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x18], eax
je 0x1007f510
mov eax, dword [esp + esi*4 + 0x74]
cmp eax, 0xffffffff
jae 0x1007f510
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 [esp + 0x1c]
mov ecx, 0x10
mov dword [eax + ebp*8], edi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x38], ebp
jmp 0x1007f515
cmp edi, 0xffffffff
je 0x1007f53b
push ebx
mov ebx, dword [esp + 0x18]
push dword [ebx + 0xdc]
push edi
call dword [esp + 0x40]
test eax, eax
jne 0x1007f74a
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 5
jb 0x1007f495
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x1007f481
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0xe8], 0
mov dword [esp + 0x18], 0
jbe 0x1007f64d
lea eax, [esi + 4]
mov esi, dword [esp + 0x40]
lea eax, [eax + ebp*8]
add esi, 4
mov dword [esp + 0x24], 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 0x1007f5b4
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 + 0x14]
push ebx
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [esp + 0x40]
test eax, eax
jne 0x1007f74a
mov ecx, dword [esp + 0x24]
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 0x1007f5f5
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 + 0x20], edi
mov edi, dword [esp + 0x30]
test al, 2
je 0x1007f61a
or edx, 0x400
mov word [ecx], dx
movzx eax, word [esi]
movzx ebx, dx
jmp 0x1007f61e
mov eax, dword [esp + 0x20]
test al, 4
je 0x1007f628
or ebx, 0x10
mov word [ecx], bx
mov eax, dword [esp + 0x18]
inc ebp
inc eax
mov dword [esp + 0x38], ebp
add ecx, 8
mov dword [esp + 0x18], eax
add esi, 8
mov dword [esp + 0x24], ecx
cmp eax, dword [esp + 0xe8]
jb 0x1007f580
test ebp, ebp
jne 0x1007f768
cmp byte [esp + 0xf8], 0
je 0x1007f8e3
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
push 0
push dword [esp + 0x40]
add eax, 0xdc
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [esp + 0xe8], 0
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x20], ecx
jbe 0x1007f82e
lea eax, [edi*8 + 6]
add eax, esi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov edi, eax
movsx eax, word [edi]
lea edx, [esp + 0x48]
mov dword [esp + 0x28], eax
xor esi, esi
mov eax, dword [esp + 0x40]
push edx
push esi
mov dword [esp + 0x50], esi
mov eax, dword [eax + ebp*8]
push eax
mov dword [esp + 0x30], eax
call ecx
test eax, eax
jne 0x1007f79d
mov ecx, dword [esp + 0x48]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [esp + 0x48]
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 + 0x44], 0
movzx eax, cx
mov esi, eax
je 0x1007f79d
test ebx, ebx
jne 0x1007f79d
cmp dword [esp + 0x48], ebx
je 0x1007f79d
mov eax, dword [esp + 0x14]
inc dword [esp + 0x2c]
push ebx
push dword [eax + 0xdc]
push dword [esp + 0x2c]
call dword [esp + 0x40]
movzx eax, si
jmp 0x1007f808
cmp byte [esp + 0x13], 0
je 0x1007f75e
push dword [esp + 0x1c]
call dword [0x10126004]
add esp, 4
mov eax, 4
jmp 0x1007f43d
mov esi, dword [esp + 0x1c]
push 0
push 0
push ebp
push esi
call fcn.1009bd70
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x18], ebx
test ebx, ebx
jns 0x1007f78e
mov eax, 0xc
jmp 0x1007f43d
jle 0x1007f66d
mov dword [esp + 0x2c], ebx
jmp 0x1007f687
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0xdc]
push dword [esp + 0x2c]
call dword [esp + 0x40]
test ebx, ebx
jne 0x1007f7ba
movzx eax, si
jmp 0x1007f808
mov edx, dword [esp + 0x28]
mov eax, esi
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x28]
cmove ecx, eax
movzx edx, cx
mov ebx, esi
mov eax, edx
or eax, 4
and bl, 0x10
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x40]
add edi, 8
mov word [ecx + ebp*8 + 6], ax
inc ebp
mov ecx, dword [esp + 0x20]
cmp ebp, dword [esp + 0xe8]
jb 0x1007f6b0
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1007f8d1
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1007f8d1
nop dword [eax]
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.1007da20
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 0x1007f8be
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push 0
push dword [esp + esi*4 + 0x7c]
call dword [esp + 0x2c]
test eax, eax
jne 0x1007f8a2
cmp dword [esp + 0x44], eax
je 0x1007f8a2
test ebx, ebx
jne 0x1007f8a2
cmp dword [esp + 0x48], ebx
je 0x1007f8a2
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x7c]
call dword [esp + 0x40]
inc esi
rol edi, 1
cmp esi, 5
jb 0x1007f867
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1007f850
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x1007f8e7
mov ebx, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x1007f8fb
push dword [esp + 0x1c]
call dword [0x10126004]
add esp, 4
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x1007f909
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
cmp byte [esp + 0xf4], 0
je 0x1007f969
test ebp, ebp
jne 0x1007f969
cmp byte [esp + 0xf8], 0
jne 0x1007f969
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x20], ebp
jne 0x1007f969
cmp byte [ebx + 0xe3], 0
jne 0x1007f969
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.1007f1c0
add esp, 8
test eax, eax
jne 0x1007f969
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1007f969
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x1007f95c
test eax, eax
jns 0x1007f95e
mov eax, ecx
cdq
push edx
push eax
call fcn.1009c280
add esp, 8
xor eax, eax
jmp 0x1007f43d
mov ecx, dword [esp + 0xd4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ca7cd
add esp, 0xcc
ret