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

Disassembly:
sub esp, 0xdc
mov eax, dword [0x46c400]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xec]
xor ebp, ebp
mov dword [esp + 0x28], eax
mov ebx, 0xa
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ebp
mov byte [esp + 0xf], 0
push edi
lea edi, [esp + 0x98]
mov dword [esp + 0x1c], edi
test esi, esi
je 0x408564
cmp dword [esi], 0xbab1e
jne 0x408564
cmp byte [esi + 0x117], 0
je 0x407e75
lea eax, [ebx - 2]
jmp 0x408569
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x40], eax
test eax, eax
jns 0x407e8b
mov eax, ebx
jmp 0x408569
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00407d00
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x407eae
mov ecx, dword [esp + 0x40]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x40], ecx
push 0x50
lea eax, [esp + 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi + 4]
xorps xmm0, xmm0
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
add esp, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x5c], xmm0
test ecx, ecx
je 0x40805e
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00406800
xor esi, esi
add esp, 8
cmp dword [esp + 0x60], esi
jbe 0x408043
mov dl, byte [esp + esi + 0x64]
mov eax, 0
mov cl, dl
mov edi, 0x29
and cl, 1
cmove edi, eax
xor ebx, ebx
test cl, 1
mov eax, 0x300
cmove eax, ebx
movzx eax, ax
mov ecx, eax
mov ebx, eax
mov dword [esp + 0x28], ecx
test dl, 2
je 0x407f7d
mov ebx, dword [esp + esi*4 + 0x4c]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], 4
push eax
push 0x1008
push 0xffff
push ebx
or edi, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x407f73
cmp dword [esp + 0x44], 1
jne 0x407f73
push eax
push eax
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x28]
or eax, 0x10
movzx ebx, ax
test bx, bx
je 0x408019
mov ecx, dword [esp + 0x1c]
test ebp, ebp
je 0x407f9f
mov eax, dword [esp + esi*4 + 0x4c]
cmp eax, dword [ecx + ebp*8 - 8]
jne 0x407f9f
or word [ecx + ebp*8 - 4], bx
jmp 0x408019
mov edx, dword [esp + 0x14]
cmp ebp, edx
jb 0x408008
lea eax, [edx + 0x64]
push 8
push eax
mov dword [esp + 0x30], eax
call dword [0x46c010]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4081b6
mov edx, dword [esp + 0x14]
lea ecx, [edx*8]
push ecx
push dword [esp + 0x20]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x407ff3
push dword [esp + 0x1c]
call dword [0x46c004]
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov byte [esp + 0x13], 1
mov eax, dword [esp + esi*4 + 0x4c]
mov dword [ecx + ebp*8], eax
mov word [ecx + ebp*8 + 4], bx
inc ebp
mov dword [esp + 0x3c], ebp
test edi, edi
je 0x408038
mov eax, dword [esp + 0x20]
push edi
push dword [eax + 0x108]
push dword [esp + esi*4 + 0x54]
call dword [esp + 0x44]
test eax, eax
jne 0x4081d8
inc esi
cmp esi, dword [esp + 0x60]
jb 0x407f01
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x407ee7
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x24], 0
test esi, esi
je 0x40822f
mov esi, dword [esp + 0x2c]
add esi, 4
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 dword [esp + 0x14], ecx
or dword [esp + 0x14], 4
and al, 2
mov eax, dword [esp + 0x14]
cmove eax, ecx
test dl, 4
je 0x4080f7
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 4
push ecx
lea ecx, [esp + 0x2c]
or eax, 0x32
push ecx
push 0x1008
mov dword [esp + 0x20], eax
mov eax, dword [esi - 4]
push 0xffff
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4080f3
cmp dword [esp + 0x28], 1
jne 0x4080f3
push eax
push eax
push eax
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 0x108]
push dword [esi - 4]
call dword [esp + 0x44]
test eax, eax
jne 0x408351
cmp ebp, ebx
jb 0x408168
lea eax, [ebx + 0x64]
push 8
push eax
mov dword [esp + 0x3c], eax
call dword [0x46c010]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x408336
lea ecx, [ebx*8]
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x408157
push edi
call dword [0x46c004]
add esp, 4
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x13], 1
mov eax, dword [esi - 4]
xor ecx, ecx
mov dword [edi + ebp*8], eax
xor eax, eax
mov word [edi + ebp*8 + 4], ax
movzx eax, word [esi]
mov edx, eax
test al, 1
je 0x40818f
mov eax, 0x300
mov word [edi + ebp*8 + 4], ax
mov ecx, eax
movzx edx, word [esi]
movzx eax, dx
movzx edx, cx
mov edi, eax
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
test al, 2
je 0x4081fa
or ecx, 0x400
mov word [edi + ebp*8 + 4], cx
movzx eax, word [esi]
movzx edx, cx
jmp 0x4081fe
cmp byte [esp + 0x13], 0
je 0x408347
push dword [esp + 0x1c]
call dword [0x46c004]
add esp, 4
mov eax, 3
jmp 0x408569
cmp byte [esp + 0x13], 0
je 0x408362
push dword [esp + 0x1c]
call dword [0x46c004]
add esp, 4
mov eax, 4
jmp 0x408569
mov eax, dword [esp + 0x18]
test al, 4
je 0x40820a
or edx, 0x10
mov word [edi + ebp*8 + 4], dx
mov eax, dword [esp + 0x24]
inc ebp
inc eax
mov dword [esp + 0x3c], ebp
add esi, 8
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0xf8]
jb 0x408080
mov esi, dword [esp + 0xf8]
mov al, byte [esp + 0x108]
test ebp, ebp
jne 0x40836c
test al, al
je 0x4084dd
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0x44]
add eax, 0x108
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov eax, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x18], eax
test esi, esi
je 0x408432
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x18]
lea eax, [eax*8 + 6]
add eax, edi
xor edi, edi
mov dword [esp + 0x28], eax
nop
movsx eax, word [eax]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x34], eax
xor esi, esi
mov eax, dword [esp + 0x2c]
push ecx
push esi
mov dword [esp + 0x74], esi
mov eax, dword [eax + edi*8]
push eax
mov dword [esp + 0x30], eax
call ebp
test eax, eax
jne 0x40839d
mov ecx, dword [esp + 0x6c]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [esp + 0x6c]
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 + 0x14]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x48], 0
movzx eax, cx
mov esi, eax
je 0x40839d
test ebx, ebx
jne 0x40839d
cmp dword [esp + 0x6c], ebx
je 0x40839d
mov eax, dword [esp + 0x20]
inc dword [esp + 0x30]
push ebx
push dword [eax + 0x108]
push dword [esp + 0x2c]
call dword [esp + 0x44]
movzx eax, si
jmp 0x408408
cmp byte [esp + 0x13], 0
je 0x408347
push edi
call dword [0x46c004]
add esp, 4
mov eax, 3
jmp 0x408569
cmp byte [esp + 0x13], 0
je 0x408362
push edi
call dword [0x46c004]
add esp, 4
mov eax, 4
jmp 0x408569
push 0
push 0
push ebp
push edi
call fcn.00428940
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x14], ebx
test ebx, ebx
jns 0x40838e
mov eax, 0xc
jmp 0x408569
jle 0x40824c
mov dword [esp + 0x30], ebx
jmp 0x408266
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 0x108]
push dword [esp + 0x2c]
call dword [esp + 0x44]
test ebx, ebx
jne 0x4083ba
movzx eax, si
jmp 0x408408
mov edx, dword [esp + 0x34]
mov eax, esi
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x34]
cmove ecx, eax
movzx edx, cx
mov ebx, esi
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 esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x2c]
mov word [ecx + edi*8 + 6], ax
inc edi
mov eax, dword [esp + 0x28]
add eax, 8
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 0xf8]
jb 0x408290
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x44], 0
je 0x4084cb
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4084cb
mov ebp, dword [esp + 0x18]
mov edi, eax
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.00406800
xor esi, esi
add esp, 8
cmp dword [esp + 0x60], esi
jbe 0x4084b8
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 0
push eax
push 0
push dword [esp + esi*4 + 0x54]
call ebp
test eax, eax
jne 0x40849d
cmp dword [esp + 0x48], eax
je 0x40849d
test ebx, ebx
jne 0x40849d
cmp dword [esp + 0x6c], ebx
je 0x40849d
inc dword [esp + 0x30]
push 0
push dword [edi + 0x108]
push dword [esp + esi*4 + 0x54]
call dword [esp + 0x44]
inc esi
cmp esi, dword [esp + 0x60]
jb 0x408470
mov edi, dword [esp + 0x2c]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x408456
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
push dword [ebx + 0x108]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x4084e1
mov ebx, dword [esp + 0x20]
cmp byte [esp + 0x13], 0
je 0x4084f2
push edi
call dword [0x46c004]
add esp, 4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x408500
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
cmp byte [esp + 0x104], 0
je 0x408560
test ebp, ebp
jne 0x408560
cmp byte [esp + 0x108], 0
jne 0x408560
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x18], ebp
jne 0x408560
cmp byte [ebx + 0x117], 0
jne 0x408560
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00407d00
add esp, 8
test eax, eax
jne 0x408560
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408560
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jg 0x408553
test eax, eax
jns 0x408555
mov eax, ecx
cdq
push edx
push eax
call fcn.00428e50
add esp, 8
xor eax, eax
jmp 0x408569
mov eax, 1
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459940
add esp, 0xdc
ret