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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xe4]
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x84]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x20], ebp
mov byte [esp + 0xb], 0
push edi
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x28], edi
test ebx, ebx
je 0x420edf
cmp dword [ebx], 0xbab1e
jne 0x420edf
cmp byte [ebx + 0x117], 0
je 0x420986
pop edi
lea eax, [ebp + 8]
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.0046ec22
add esp, 0xd0
ret
push esi
mov esi, dword [esp + 0xf0]
test esi, esi
jns 0x4209b0
mov eax, 0xa
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.0046ec22
add esp, 0xd0
ret
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004207f0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x4209d2
cmp eax, esi
cmovl esi, eax
mov dword [esp + 0xf0], esi
push 0x50
lea eax, [esp + 0x90]
push 0
push eax
call fcn.004efc10
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
add esp, 0xc
mov dword [esp + 0x1c], eax
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x50], xmm0
test eax, eax
je 0x420b1b
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.0041f520
xor esi, esi
add esp, 8
cmp dword [esp + 0x54], esi
jbe 0x420b04
nop dword [eax]
mov al, byte [esp + esi + 0x58]
xor edi, edi
xor ebx, ebx
test al, 1
je 0x420a34
lea ebx, [edi + 0x29]
mov edi, 0x300
test al, 2
je 0x420a7e
mov ebp, dword [esp + esi*4 + 0x40]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], 4
push eax
push 0x1008
push 0xffff
push ebp
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x420a77
cmp dword [esp + 0x38], 1
jne 0x420a77
push eax
push eax
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x28]
or edi, 0x10
test di, di
je 0x420ad8
mov ecx, dword [esp + 0x18]
test ebp, ebp
je 0x420a9c
mov eax, dword [esp + esi*4 + 0x40]
cmp eax, dword [ecx + ebp*8 - 8]
jne 0x420a9c
or word [ecx + ebp*8 - 4], di
jmp 0x420ad8
cmp ebp, dword [esp + 0x30]
jb 0x420ac7
lea eax, [esp + 0x13]
push eax
push 0x64
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00421530
add esp, 0x10
test eax, eax
jne 0x420c29
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + esi*4 + 0x40]
mov dword [ecx + ebp*8], eax
mov word [ecx + ebp*8 + 4], di
inc ebp
mov dword [esp + 0x28], ebp
test ebx, ebx
je 0x420af9
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x108]
push dword [esp + esi*4 + 0x48]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x420c33
inc esi
cmp esi, dword [esp + 0x54]
jb 0x420a20
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x420a02
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0xec]
xor ebx, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebx
test esi, esi
je 0x420c52
add edi, 4
movzx eax, word [edi]
xor esi, esi
test al, 1
mov ecx, 0x29
cmovne esi, ecx
test al, 2
je 0x420b4d
or esi, 4
test al, 4
je 0x420b93
mov ebx, dword [edi - 4]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 4
push eax
push 0x1008
push 0xffff
push ebx
or esi, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x420b8f
cmp dword [esp + 0x3c], 1
jne 0x420b8f
push eax
push eax
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push esi
push dword [eax + 0x108]
push dword [edi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x420c33
cmp ebp, dword [esp + 0x30]
jb 0x420bd2
lea eax, [esp + 0x13]
push eax
push 0x64
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00421530
add esp, 0x10
test eax, eax
jne 0x420c29
mov ecx, dword [esp + 0x18]
mov eax, dword [edi - 4]
mov dword [ecx + ebp*8], eax
xor eax, eax
mov word [ecx + ebp*8 + 4], ax
test byte [edi], 1
je 0x420bf2
mov eax, 0x300
mov word [ecx + ebp*8 + 4], ax
test byte [edi], 2
je 0x420c01
mov eax, 0x400
or word [ecx + ebp*8 + 4], ax
test byte [edi], 4
je 0x420c0c
or word [ecx + ebp*8 + 4], 0x10
mov esi, dword [esp + 0xec]
inc ebx
inc ebp
mov dword [esp + 0x1c], ebx
add edi, 8
mov dword [esp + 0x28], ebp
cmp ebx, esi
jae 0x420c56
jmp 0x420b37
mov eax, 3
jmp 0x420997
cmp byte [esp + 0x13], 0
je 0x420c48
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x5a8004]
add esp, 4
mov eax, 4
jmp 0x420997
mov ecx, dword [esp + 0x18]
test ebp, ebp
jne 0x420e22
mov bl, byte [esp + 0xfc]
test bl, bl
je 0x420e53
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0xf4]
add eax, 0x108
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test esi, esi
je 0x420d71
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
add edi, 6
lea eax, [eax*8 + 6]
add eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
nop word [eax + eax]
movsx ebx, word [eax]
lea ecx, [esp + 0x60]
mov eax, dword [edi - 6]
xor esi, esi
push ecx
push esi
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x420d10
mov eax, dword [esp + 0x60]
mov ecx, 1
test al, 0x29
cmovne esi, ecx
test al, 0x32
je 0x420cf6
or esi, 4
test al, 4
je 0x420cfd
or esi, 2
cmp dword [esp + 0x34], 0
je 0x420d10
test ebp, ebp
jne 0x420d10
test eax, eax
je 0x420d10
inc dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 0x108]
push dword [esp + 0x44]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebp, ebp
je 0x420d48
test ebx, 0x300
je 0x420d35
or esi, 1
test bl, 0x10
je 0x420d3d
or esi, 4
test ebx, 0x400
je 0x420d48
or esi, 2
mov eax, dword [esp + 0x2c]
mov word [edi], si
add eax, 8
add edi, 8
mov dword [esp + 0x2c], eax
sub dword [esp + 0xec], 1
jne 0x420cc0
mov ebp, dword [esp + 0x28]
mov ebx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp dword [esp + 0x14], 0
je 0x420e09
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 4]
mov dword [esp + 0x14], edi
test edi, edi
je 0x420e09
mov ebp, dword [esp + 0x1c]
nop
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0041f520
xor esi, esi
add esp, 8
cmp dword [esp + 0x54], esi
jbe 0x420dfa
mov edi, dword [esp + 0x20]
nop word [eax + eax]
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
push 0
push dword [esp + esi*4 + 0x48]
call ebx
test eax, eax
jne 0x420ddd
cmp dword [esp + 0x34], eax
je 0x420ddd
test ebp, ebp
jne 0x420ddd
cmp dword [esp + 0x60], ebp
je 0x420ddd
inc dword [esp + 0x24]
push 0
push dword [edi + 0x108]
push dword [esp + esi*4 + 0x48]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
cmp esi, dword [esp + 0x54]
jb 0x420db0
mov edi, dword [esp + 0x14]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x420d90
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push dword [edi + 0x108]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov bl, byte [esp + 0xfc]
jmp 0x420e57
push 0
push 0
push ebp
push ecx
call fcn.00441d10
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x1c], ebx
test ebx, ebx
jns 0x420e44
mov eax, 0xc
jmp 0x420997
jle 0x420c71
mov dword [esp + 0x24], ebx
jmp 0x420c8e
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x13], 0
je 0x420e6b
push dword [esp + 0x18]
call dword [0x5a8004]
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x420e79
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
cmp byte [esp + 0xf8], 0
je 0x420ed8
test ebp, ebp
jne 0x420ed8
test bl, bl
jne 0x420ed8
cmp dword [edi], 0xbab1e
mov dword [esp + 0x14], ebp
jne 0x420ed8
cmp byte [edi + 0x117], bl
jne 0x420ed8
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004207f0
add esp, 8
test eax, eax
jne 0x420ed8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x420ed8
mov ecx, dword [esp + 0xf0]
cmp eax, ecx
jg 0x420ecb
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.004421f0
add esp, 8
xor eax, eax
jmp 0x420997
mov ecx, dword [esp + 0xd8]
mov eax, 1
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0xd0
ret