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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x64c00c]
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 0x48becb
cmp dword [esi], 0xbab1e
jne 0x48becb
cmp byte [esi + 0xe2], 0
je 0x48b8b7
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.00483ab6
add esp, 0xc0
ret
cmp dword [esp + 0xdc], edi
jge 0x48b8dd
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.00483ab6
add esp, 0xc0
ret
push ebp
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x48b946
lea eax, [esp + 0x68]
push eax
push ebp
call fcn.0048a210
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test ebx, eax
je 0x48b913
mov ecx, dword [esp + edx*4 + 0x68]
cmp ecx, 0xffffffff
jae 0x48b913
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x48b926
cmp dword [esp + edx*4 + 0x68], 0xffffffff
jae 0x48b926
inc edi
jmp 0x48b92b
cmp esi, 0xffffffff
je 0x48b933
inc edx
rol eax, 1
cmp edx, 5
jb 0x48b900
mov ebp, dword [ebp + 4]
mov dword [esp + 0x30], edi
test ebp, ebp
jne 0x48b8e5
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x7c]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0048b750
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x48b96f
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 0x48b9c7
lea eax, [ecx*8]
push eax
call dword [0x64c024]
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x48b9c2
lea eax, [ebx + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.00483ab6
add esp, 0xc0
ret
mov byte [esp + 0x13], 1
xor ebp, ebp
mov dword [esp + 0x34], ebp
test edi, edi
je 0x48bab3
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x48bab3
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.0048a210
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 0x48ba31
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 0x48ba6b
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 0x48ba98
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 0x48bbc9
mov eax, dword [esp + 0x14]
inc edi
cmp edi, 5
jb 0x48ba00
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x48b9e4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xdc], 0
mov dword [esp + 0x18], 0
jbe 0x48bbaf
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 0x48bb14
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 0x48bbc9
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 0x48bb57
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 0x48bb7c
or edx, 0x400
mov word [ecx], dx
movzx eax, word [esi]
movzx ebx, dx
jmp 0x48bb80
mov eax, dword [esp + 0x14]
test al, 4
je 0x48bb8a
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 0x48bae0
test ebp, ebp
jne 0x48bbe7
cmp byte [esp + 0xec], 0
je 0x48be3b
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x48bc02
cmp byte [esp + 0x13], 0
je 0x48bbdd
push dword [esp + 0x20]
call dword [0x64c028]
add esp, 4
mov eax, 4
jmp 0x48b9a9
push 0
push 0
push ebp
push dword [esp + 0x2c]
call fcn.004a8c60
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x18], ebx
test ebx, ebx
jg 0x48bc20
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 0x48bd84
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 0x48bcf8
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 0x48bcf8
mov dword [esp + 0x38], eax
test ebx, ebx
jg 0x48bcf8
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
je 0x48bcf8
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 0x48bd6b
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 0x48bd6b
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 0x48bc50
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x48be29
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x48be29
nop
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.0048a210
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 0x48be12
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 0x48bdf4
cmp dword [esp + 0x28], eax
je 0x48bdf4
test ebx, ebx
jg 0x48bdf4
cmp dword [esp + 0x3c], eax
je 0x48bdf4
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 0x48bdb7
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x48bda0
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x48be3f
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x13], 0
je 0x48be53
push dword [esp + 0x20]
call dword [0x64c028]
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x48be61
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
cmp byte [esp + 0xe8], 0
je 0x48bec4
test ebp, ebp
jne 0x48bec4
cmp byte [esp + 0xec], 0
jne 0x48bec4
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x28], ebp
jne 0x48bec4
cmp byte [ebx + 0xe2], 0
jne 0x48bec4
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0048b750
add esp, 8
test eax, eax
jne 0x48bec4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x48bec4
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
jg 0x48beb7
test eax, eax
jns 0x48beb9
mov eax, ecx
cdq
push edx
push eax
call fcn.004a9270
add esp, 8
xor eax, eax
jmp 0x48b9a9
mov ecx, dword [esp + 0xc8]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00483ab6
add esp, 0xc0
ret