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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x46c380]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd4]
push ebx
push esi
mov esi, dword [esp + 0xd8]
xor ebx, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0xb], bl
push edi
lea edi, [esp + 0x84]
mov dword [esp + 0x1c], edi
test esi, esi
je 0x409a6e
cmp dword [esi], 0xbab1e
jne 0x409a6e
cmp byte [esi + 0x10b], bl
je 0x409408
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00457062
add esp, 0xcc
ret
cmp dword [esp + 0xe8], ebx
jge 0x40942e
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00457062
add esp, 0xcc
ret
push ebp
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x409499
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.00407de0
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test edi, eax
je 0x409463
mov ecx, dword [esp + edx*4 + 0x74]
cmp ecx, 0xffffffff
jae 0x409463
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x409476
cmp dword [esp + edx*4 + 0x74], 0xffffffff
jae 0x409476
inc ebx
jmp 0x40947b
cmp esi, 0xffffffff
je 0x409483
inc edx
rol eax, 1
cmp edx, 5
jb 0x409450
mov ebp, dword [ebp + 0x10]
mov dword [esp + 0x3c], ebx
test ebp, ebp
jne 0x409436
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x88]
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00409280
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x4094c2
mov ecx, dword [esp + 0xec]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xec], ecx
mov eax, dword [esp + 0xe8]
add eax, ebx
cmp byte [esp + 0xf8], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x40951a
lea eax, [ecx*8]
push eax
call dword [section..data]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x409515
lea eax, [edi + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00457062
add esp, 0xcc
ret
mov byte [esp + 0x13], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], eax
test ebx, ebx
je 0x409640
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x409640
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.00407de0
add esp, 8
mov dword [esp + 0x28], eax
xor edi, edi
mov edx, 1
mov ecx, edi
shl edx, cl
or esi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x40958c
mov eax, dword [esp + edi*4 + 0x74]
cmp eax, 0xffffffff
jae 0x40958c
mov esi, eax
mov ecx, 0x300
mov eax, dword [esp + 0x20]
mov ebx, 0x29
mov dword [eax + ebp*8], esi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x14], ebp
lea ecx, [edi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x28], eax
je 0x4095fa
mov eax, dword [esp + edi*4 + 0x74]
cmp eax, 0xffffffff
jae 0x4095fa
mov esi, eax
mov dword [esp + 0x18], 4
lea eax, [esp + 0x18]
or ebx, 0x32
push eax
lea eax, [esp + 0x38]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4095e2
cmp dword [esp + 0x34], 1
jne 0x4095e2
push eax
push eax
push eax
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 + 0x14], ebp
jmp 0x4095ff
cmp esi, 0xffffffff
je 0x409625
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0x104]
push esi
call dword [esp + 0x44]
test eax, eax
jne 0x409840
mov eax, dword [esp + 0x28]
inc edi
cmp edi, 5
jb 0x409554
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x409540
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
cmp dword [esp + 0xe8], 0
mov dword [esp + 0x24], 0
jbe 0x40974a
mov esi, dword [esp + 0x40]
lea edi, [edi + ebp*8]
add edi, 4
add esi, 4
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [esp + 0x14], ecx
or dword [esp + 0x14], 4
test dl, 2
mov eax, dword [esp + 0x14]
cmove eax, ecx
test dl, 4
je 0x4096d9
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 4
push ecx
lea ecx, [esp + 0x38]
or eax, 0x32
push ecx
push 0x1008
mov dword [esp + 0x20], eax
mov eax, dword [esi - 4]
push 0xffff
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4096d5
cmp dword [esp + 0x34], 1
jne 0x4096d5
push eax
push eax
push eax
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x104]
push dword [esi - 4]
call dword [esp + 0x44]
test eax, eax
jne 0x409840
mov eax, dword [esi - 4]
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
test byte [esi], 1
je 0x40970b
mov eax, 0x300
mov word [edi], ax
test byte [esi], 2
movzx ecx, ax
je 0x40971e
or eax, 0x400
mov word [edi], ax
movzx ecx, ax
test byte [esi], 4
je 0x409729
or ecx, 0x10
mov word [edi], cx
mov eax, dword [esp + 0x24]
inc ebp
inc eax
mov dword [esp + 0x14], ebp
add edi, 8
mov dword [esp + 0x24], eax
add esi, 8
cmp eax, dword [esp + 0xe8]
jb 0x409663
test ebp, ebp
jne 0x40985e
cmp byte [esp + 0xf8], 0
je 0x4099de
mov esi, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x1c]
push 0
push dword [esp + 0xf0]
add eax, 0x104
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 + 0x18], ecx
jbe 0x409920
lea eax, [ebx*8 + 6]
add eax, esi
xor ebp, ebp
mov dword [esp + 0x2c], eax
nop
movsx ebx, word [eax]
lea edx, [esp + 0x48]
mov eax, dword [esp + 0x40]
xor esi, esi
push edx
push esi
mov dword [esp + 0x30], ebx
mov eax, dword [eax + ebp*8]
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], esi
call ecx
test eax, eax
jne 0x409897
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
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 [esp + 0x44], 0
movzx eax, cx
mov esi, eax
je 0x409893
test edi, edi
jne 0x409893
test ebx, ebx
je 0x409893
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x30]
push edi
push dword [eax + 0x104]
push dword [esp + 0x2c]
call dword [esp + 0x44]
movzx eax, si
jmp 0x4098f6
cmp byte [esp + 0x13], 0
je 0x409854
push dword [esp + 0x20]
call dword [0x46c004]
add esp, 4
mov eax, 4
jmp 0x4094fc
mov esi, dword [esp + 0x20]
push 0
push 0
push ebp
push esi
call fcn.00428310
mov edi, eax
add esp, 0x10
mov dword [esp + 0x34], edi
test edi, edi
jns 0x409884
mov eax, 0xc
jmp 0x4094fc
jle 0x40976a
mov dword [esp + 0x30], edi
jmp 0x409787
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0x104]
push dword [esp + 0x2c]
call dword [esp + 0x44]
test edi, edi
jne 0x4098b4
movzx eax, si
jmp 0x4098f6
mov eax, esi
or eax, 1
test ebx, 0x300
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test dword [esp + 0x28], 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x40]
mov word [ecx + ebp*8 + 6], ax
inc ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x2c], eax
cmp ebp, dword [esp + 0xe8]
jb 0x4097b0
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x3c], 0
je 0x4099ce
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4099ce
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.00407de0
add esp, 8
mov ebp, eax
xor esi, esi
mov edi, 1
nop dword [eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebp, edx
je 0x4099b7
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push 0
push dword [esp + esi*4 + 0x7c]
call dword [esp + 0x24]
test eax, eax
jne 0x40999b
cmp dword [esp + 0x44], eax
je 0x40999b
test ebx, ebx
jne 0x40999b
cmp dword [esp + 0x48], ebx
je 0x40999b
inc dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0x104]
push dword [esp + esi*4 + 0x7c]
call dword [esp + 0x44]
inc esi
rol edi, 1
cmp esi, 5
jb 0x409960
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x409942
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push dword [eax + 0x104]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x4099f2
push dword [esp + 0x20]
call dword [0x46c004]
add esp, 4
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x409a00
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
cmp byte [esp + 0xf4], 0
je 0x409a67
test ebp, ebp
jne 0x409a67
cmp byte [esp + 0xf8], 0
jne 0x409a67
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
cmp dword [eax], 0xbab1e
jne 0x409a67
cmp byte [eax + 0x10b], 0
jne 0x409a67
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00409280
add esp, 8
test eax, eax
jne 0x409a67
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409a67
mov ecx, dword [esp + 0xec]
cmp eax, ecx
jg 0x409a5a
test eax, eax
jns 0x409a5c
mov eax, ecx
cdq
push edx
push eax
call fcn.004287c0
add esp, 8
xor eax, eax
jmp 0x4094fc
mov ecx, dword [esp + 0xd4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00457062
add esp, 0xcc
ret