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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp + 0x18]
lea ebx, [ebp - 0x54]
mov dword [ebp - 0xb8], eax
mov esi, 0xa
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], edi
mov byte [ebp - 0xa1], 0
test eax, eax
je 0x430bb4
cmp dword [eax], 0xbab1e
jne 0x430bb4
cmp byte [eax + 0x117], 0
je 0x43037f
pop edi
lea eax, [esi - 2]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], edi
jge 0x430397
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.00430210
mov eax, dword [ebp - 0xb0]
add esp, 8
test eax, eax
js 0x4303bc
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp + 0x14], ecx
push 0x50
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0046e6a0
mov eax, dword [ebp - 0xb8]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebp - 0x74], xmm0
mov ecx, dword [eax + 4]
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xd4], eax
movups xmmword [ebp - 0x64], xmm0
test ecx, ecx
je 0x4305e8
nop dword [eax]
lea eax, [ebp - 0x74]
push eax
push ecx
call fcn.0042eed0
xor ebx, ebx
add esp, 8
cmp dword [ebp - 0x60], ebx
jbe 0x4305bf
nop dword [eax + eax]
mov dl, byte [ebp + ebx - 0x5c]
mov eax, 0
test dl, 1
mov edi, 0x29
mov cl, dl
cmove edi, eax
xor esi, esi
test cl, 1
mov eax, 0x300
cmove eax, esi
lea esi, [ebx*4]
movzx eax, ax
mov dword [ebp - 0xc4], eax
mov ecx, eax
mov dword [ebp - 0xcc], ecx
test dl, 2
je 0x4304c4
mov eax, dword [ebp + esi - 0x74]
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xd8], eax
push ecx
push 0x1008
push 0xffff
push eax
or edi, 0x32
mov dword [ebp - 0xb0], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4304b2
cmp dword [ebp - 0xc0], 1
jne 0x4304b2
push eax
push eax
push eax
push dword [ebp - 0xd8]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xcc]
or eax, 0x10
movzx eax, ax
mov dword [ebp - 0xc4], eax
test ax, ax
je 0x430592
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xb4]
test ecx, ecx
je 0x4304f7
mov eax, dword [ebp + esi - 0x74]
cmp eax, dword [edx + ecx*8 - 8]
jne 0x4304f7
mov eax, dword [ebp - 0xc4]
or word [edx + ecx*8 - 4], ax
jmp 0x430592
mov eax, dword [ebp - 0xac]
cmp ecx, eax
jb 0x430572
add eax, 0x64
push 8
push eax
mov dword [ebp - 0xcc], eax
call dword [0x4c0520]
mov esi, eax
add esp, 8
test esi, esi
je 0x4308b6
mov ecx, dword [ebp - 0xac]
shl ecx, 3
push ecx
push dword [ebp - 0xb4]
push esi
call fcn.0046e120
add esp, 0xc
cmp byte [ebp - 0xa1], 0
je 0x430551
push dword [ebp - 0xb4]
call dword [0x4c0514]
add esp, 4
mov eax, dword [ebp - 0xcc]
mov edx, esi
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa1], 1
lea esi, [ebx*4]
mov eax, dword [ebp + esi - 0x74]
mov dword [edx + ecx*8], eax
mov eax, dword [ebp - 0xc4]
mov word [edx + ecx*8 + 4], ax
inc ecx
mov dword [ebp - 0xa8], ecx
test edi, edi
je 0x4305b5
mov eax, dword [ebp - 0xb8]
push edi
push dword [eax + 0x108]
push dword [ebp + esi - 0x74]
call dword [ebp - 0xd4]
test eax, eax
jne 0x4308e4
inc ebx
cmp ebx, dword [ebp - 0x60]
jb 0x430420
mov ecx, dword [ebp - 0xbc]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0xbc], ecx
test ecx, ecx
jne 0x430400
mov edi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xac]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xbc], 0
jbe 0x430796
mov ecx, dword [ebp - 0xc8]
add ecx, 4
mov dword [ebp - 0xac], ecx
movzx edx, word [ecx]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [ebp - 0xa8], ecx
or dword [ebp - 0xa8], 4
test dl, 2
mov eax, dword [ebp - 0xa8]
cmove eax, ecx
test dl, 4
je 0x4306a3
or eax, 0x32
mov dword [ebp - 0xcc], 4
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xac]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov eax, dword [eax - 4]
push 0x1008
push 0xffff
push eax
mov dword [ebp - 0xc0], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43069d
cmp dword [ebp - 0xb0], 1
jne 0x43069d
push eax
push eax
push eax
push dword [ebp - 0xc0]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xb8]
push dword [eax + 0x108]
mov eax, dword [ebp - 0xac]
push dword [eax - 4]
call dword [ebp - 0xd4]
test eax, eax
jne 0x43093b
cmp edi, esi
jb 0x43072c
lea eax, [esi + 0x64]
push 8
push eax
mov dword [ebp - 0xc0], eax
call dword [0x4c0520]
add esp, 8
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x430912
lea ecx, [esi*8]
push ecx
push ebx
push eax
call fcn.0046e120
add esp, 0xc
cmp byte [ebp - 0xa1], 0
je 0x430713
push ebx
call dword [0x4c0514]
add esp, 4
mov ebx, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xc0]
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0xa1], 1
mov ecx, dword [ebp - 0xac]
mov eax, dword [ecx - 4]
mov dword [ebx + edi*8], eax
xor eax, eax
mov word [ebx + edi*8 + 4], ax
test byte [ecx], 1
je 0x43074e
mov eax, 0x300
mov word [ebx + edi*8 + 4], ax
test byte [ecx], 2
movzx edx, ax
je 0x430763
or eax, 0x400
mov word [ebx + edi*8 + 4], ax
movzx edx, ax
test byte [ecx], 4
je 0x430770
or edx, 0x10
mov word [ebx + edi*8 + 4], dx
mov eax, dword [ebp - 0xbc]
inc edi
inc eax
mov dword [ebp - 0xa8], edi
add ecx, 8
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xac], ecx
cmp eax, dword [ebp + 0x10]
jb 0x430611
test edi, edi
jne 0x430964
cmp byte [ebp + 0x20], 0
je 0x430b14
xor esi, esi
mov dword [ebp - 0xc0], esi
mov eax, dword [ebp - 0xb8]
push 0
push dword [ebp + 0x14]
add eax, 0x108
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [ebp + 0x10], 0
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [ebp - 0xb0], ecx
jbe 0x430a44
mov eax, dword [ebp - 0xd8]
lea eax, [eax*8 + 6]
add eax, ebx
xor edi, edi
mov dword [ebp - 0xac], eax
nop dword [eax + eax]
movsx eax, word [eax]
lea edx, [ebp - 0xa0]
mov dword [ebp - 0xc4], eax
xor ebx, ebx
mov eax, dword [ebp - 0xc8]
push edx
push ebx
mov dword [ebp - 0xa0], ebx
mov eax, dword [eax + edi*8]
push eax
mov dword [ebp - 0xbc], eax
call ecx
test eax, eax
jne 0x4309a5
mov ecx, dword [ebp - 0xa0]
mov eax, ebx
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x32
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [ebp - 0xdc], 0
movzx eax, cx
mov ebx, eax
je 0x4309a5
test esi, esi
jne 0x4309a5
cmp dword [ebp - 0xa0], esi
je 0x4309a5
mov eax, dword [ebp - 0xb8]
inc dword [ebp - 0xd0]
push esi
push dword [eax + 0x108]
push dword [ebp - 0xbc]
call dword [ebp - 0xd4]
movzx eax, bx
jmp 0x430a14
cmp byte [ebp - 0xa1], 0
je 0x430925
push dword [ebp - 0xb4]
call dword [0x4c0514]
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa1], 0
je 0x43094e
push dword [ebp - 0xb4]
call dword [0x4c0514]
add esp, 4
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa1], 0
je 0x430925
push ebx
call dword [0x4c0514]
add esp, 4
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa1], 0
je 0x43094e
push ebx
call dword [0x4c0514]
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push ebx
call fcn.00451310
mov esi, eax
add esp, 0x10
mov dword [ebp - 0xc0], esi
test esi, esi
jns 0x430994
pop edi
pop esi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
jle 0x4307b0
mov dword [ebp - 0xd0], esi
jmp 0x4307cb
mov eax, dword [ebp - 0xb8]
push 0
push dword [eax + 0x108]
push dword [ebp - 0xbc]
call dword [ebp - 0xd4]
test esi, esi
jne 0x4309c8
movzx eax, bx
jmp 0x430a14
mov eax, ebx
or eax, 1
test dword [ebp - 0xc4], 0x300
movzx ecx, ax
movzx eax, bx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test byte [ebp - 0xc4], 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test dword [ebp - 0xc4], 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [ebp - 0xc8]
mov word [ecx + edi*8 + 6], ax
inc edi
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
add eax, 8
mov dword [ebp - 0xac], eax
cmp edi, dword [ebp + 0x10]
jb 0x430800
mov edi, dword [ebp - 0xa8]
cmp dword [ebp - 0xd8], 0
je 0x430b02
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x430b02
mov ebx, dword [ebp - 0xc0]
mov edi, eax
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.0042eed0
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x430aeb
mov edi, dword [ebp - 0xb0]
nop word [eax + eax]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
push eax
push 0
push dword [ebp + esi*4 - 0x74]
call edi
test eax, eax
jne 0x430ac7
cmp dword [ebp - 0xdc], eax
je 0x430ac7
test ebx, ebx
jne 0x430ac7
cmp dword [ebp - 0xa0], ebx
je 0x430ac7
inc dword [ebp - 0xd0]
mov eax, dword [ebp - 0xb8]
push 0
push dword [eax + 0x108]
push dword [ebp + esi*4 - 0x74]
call dword [ebp - 0xd4]
inc esi
cmp esi, dword [ebp - 0x60]
jb 0x430a90
mov edi, dword [ebp - 0xc8]
mov edi, dword [edi + 0x10]
mov dword [ebp - 0xc8], edi
test edi, edi
jne 0x430a70
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xb8]
push dword [eax + 0x108]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0xa1], 0
je 0x430b2c
push dword [ebp - 0xb4]
call dword [0x4c0514]
add esp, 4
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x430b3e
mov eax, dword [ebp - 0xd0]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x430ba1
test edi, edi
jne 0x430ba1
cmp byte [ebp + 0x20], 0
jne 0x430ba1
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], edi
cmp dword [eax], 0xbab1e
jne 0x430ba1
cmp byte [eax + 0x117], 0
jne 0x430ba1
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.00430210
add esp, 8
test eax, eax
jne 0x430ba1
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x430ba1
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x430b94
test eax, eax
jns 0x430b96
mov eax, ecx
cdq
push edx
push eax
call fcn.004517c0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ca44
mov esp, ebp
pop ebp
ret