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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x1008602c]
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 0x1000accb
cmp dword [esi], 0xbab1e
jne 0x1000accb
cmp byte [esi + 0xe2], 0
je 0x1000a6b7
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.10052640
add esp, 0xc0
ret
cmp dword [esp + 0xdc], edi
jge 0x1000a6dd
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.10052640
add esp, 0xc0
ret
push ebp
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x1000a746
lea eax, [esp + 0x68]
push eax
push ebp
call fcn.10009010
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test ebx, eax
je 0x1000a713
mov ecx, dword [esp + edx*4 + 0x68]
cmp ecx, 0xffffffff
jae 0x1000a713
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x1000a726
cmp dword [esp + edx*4 + 0x68], 0xffffffff
jae 0x1000a726
inc edi
jmp 0x1000a72b
cmp esi, 0xffffffff
je 0x1000a733
inc edx
rol eax, 1
cmp edx, 5
jb 0x1000a700
mov ebp, dword [ebp + 4]
mov dword [esp + 0x30], edi
test ebp, ebp
jne 0x1000a6e5
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x7c]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.1000a550
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x1000a76f
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 0x1000a7c7
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 0x1000a7c2
lea eax, [ebx + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.10052640
add esp, 0xc0
ret
mov byte [esp + 0x13], 1
xor ebp, ebp
mov dword [esp + 0x34], ebp
test edi, edi
je 0x1000a8b3
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000a8b3
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.10009010
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 0x1000a831
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 0x1000a86b
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 0x1000a898
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 0x1000a9c9
mov eax, dword [esp + 0x14]
inc edi
cmp edi, 5
jb 0x1000a800
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1000a7e4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xdc], 0
mov dword [esp + 0x18], 0
jbe 0x1000a9af
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 0x1000a914
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 0x1000a9c9
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 0x1000a957
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 0x1000a97c
or edx, 0x400
mov word [ecx], dx
movzx eax, word [esi]
movzx ebx, dx
jmp 0x1000a980
mov eax, dword [esp + 0x14]
test al, 4
je 0x1000a98a
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 0x1000a8e0
test ebp, ebp
jne 0x1000a9e7
cmp byte [esp + 0xec], 0
je 0x1000ac3b
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x1000aa02
cmp byte [esp + 0x13], 0
je 0x1000a9dd
push dword [esp + 0x20]
call dword [0x10086004]
add esp, 4
mov eax, 4
jmp 0x1000a7a9
push 0
push 0
push ebp
push dword [esp + 0x2c]
call fcn.10027450
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x18], ebx
test ebx, ebx
jg 0x1000aa20
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 0x1000ab84
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 0x1000aaf8
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 0x1000aaf8
mov dword [esp + 0x38], eax
test ebx, ebx
jg 0x1000aaf8
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
je 0x1000aaf8
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 0x1000ab6b
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 0x1000ab6b
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 0x1000aa50
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1000ac29
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000ac29
nop
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.10009010
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 0x1000ac12
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 0x1000abf4
cmp dword [esp + 0x28], eax
je 0x1000abf4
test ebx, ebx
jg 0x1000abf4
cmp dword [esp + 0x3c], eax
je 0x1000abf4
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 0x1000abb7
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1000aba0
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x1000ac3f
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x13], 0
je 0x1000ac53
push dword [esp + 0x20]
call dword [0x10086004]
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1000ac61
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
cmp byte [esp + 0xe8], 0
je 0x1000acc4
test ebp, ebp
jne 0x1000acc4
cmp byte [esp + 0xec], 0
jne 0x1000acc4
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x28], ebp
jne 0x1000acc4
cmp byte [ebx + 0xe2], 0
jne 0x1000acc4
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.1000a550
add esp, 8
test eax, eax
jne 0x1000acc4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000acc4
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
jg 0x1000acb7
test eax, eax
jns 0x1000acb9
mov eax, ecx
cdq
push edx
push eax
call fcn.10027a60
add esp, 8
xor eax, eax
jmp 0x1000a7a9
mov ecx, dword [esp + 0xc8]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10052640
add esp, 0xc0
ret