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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de97c
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x526a28]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], edx
test ecx, ecx
jne 0x40a9f4
xor eax, eax
jmp 0x40aa0f
mov eax, ecx
lea ebx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40aa00
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [esi + 0x14]
call fcn.00404ce0
lea eax, [ebp - 0x1bc]
push 3
mov dword [ebp - 0x1c0], eax
push edi
lea eax, [ebp - 0x1c0]
call fcn.00404240
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x1c0]
cmp edx, eax
je 0x40aa50
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aa47
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x18]
call fcn.00404300
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1bc]
cmp eax, ecx
je 0x40aa79
push eax
call fcn.00431fb7
add esp, 4
mov eax, dword [ebp - 0x134]
push 3
lea edx, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], edx
call fcn.00404240
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x1c0]
test edx, edx
jne 0x40aaae
xor eax, eax
jmp 0x40aabc
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aab3
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00404300
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1bc]
cmp eax, ecx
je 0x40aae2
push eax
call fcn.00431fb7
add esp, 4
mov eax, dword [ebp - 0x138]
push 3
lea edx, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], edx
call fcn.00404240
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x1c0]
lea edi, [esi + 0x20]
test edx, edx
jne 0x40ab1a
xor eax, eax
jmp 0x40ab2c
mov eax, edx
lea ebx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ab20
sub eax, ebx
or ebx, 0xffffffff
push eax
push edx
mov ecx, edi
call fcn.00404300
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1bc]
cmp eax, ecx
je 0x40ab51
push eax
call fcn.00431fb7
add esp, 4
mov edx, dword [ebp + 0x14]
lea eax, [esi + 0x8088]
push eax
mov dword [esi + 0x24], edx
call fcn.00432414
add esp, 4
mov byte [esi + 0x10], 1
call fcn.0040af00
push 0
push ebx
push 0
lea ecx, [ebp - 0x130]
call fcn.00404600
mov dword [ebp - 4], 3
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x8058]
lea ebx, [ebp - 0x130]
push ebx
lea ecx, [esi + 0x8058]
push 0x1001
push eax
mov eax, dword [edx + 0x20]
call eax
test eax, eax
je 0x40aea5
mov eax, dword [edi]
mov ecx, dword [esi + 0x18]
push eax
mov edx, esi
call fcn.0040b350
test eax, eax
jne 0x40abcc
mov eax, esi
call fcn.0040b2b0
jmp 0x40aea5
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
push ecx
call fcn.0040af80
test eax, eax
jne 0x40ac0f
mov eax, esi
call fcn.0040b2b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40aecc
cmp dword [esi + 0x8080], 0
jne 0x40ae92
mov dword [esi + 0x8040], 0
call fcn.0040b040
test eax, eax
jne 0x40ac72
mov eax, esi
call fcn.0040b2b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40aeda
lea ecx, [ebp - 0x1c8]
push ecx
call fcn.00432414
movzx edx, word [esi + 0x28]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
add esp, 4
push edx
call ebx
movzx eax, ax
sub eax, 3
je 0x40acff
sub eax, 2
je 0x40ac2f
sub eax, 1
jne 0x40ac2f
cmp dword [esi + 0x8068], eax
jne 0x40acae
push esi
call fcn.0040b0e0
movzx eax, word [esi + 0x2a]
push eax
call ebx
cmp ax, word [esi + 0x8068]
jne 0x40ae4a
mov eax, dword [esi + 0x806c]
test eax, eax
je 0x40acd2
inc dword [esi + 0x8070]
lea ecx, [eax + 1]
mov dword [esi + 0x806c], ecx
cmp eax, 6
jbe 0x40ae2d
mov eax, esi
call fcn.0040b2b0
lea ecx, [ebp - 0x130]
mov esi, eax
call fcn.00404590
mov eax, esi
jmp 0x40aeda
movzx ecx, word [esi + 0x2a]
push ecx
call ebx
mov dx, word [esi + 0x8068]
inc dx
cmp ax, dx
jne 0x40acae
mov byte [ebp - 4], 4
mov edx, dword [esi + 0x8040]
mov eax, dword [esi + 0x8058]
mov eax, dword [eax + 0x38]
sub edx, 4
lea ecx, [esi + 0x8058]
push edx
lea edx, [esi + 0x2c]
push edx
call eax
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x8040]
mov edi, dword [esi + 0x8078]
sub ecx, 4
add dword [esi + 0x8048], ecx
test edi, edi
jbe 0x40ada1
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x40ad9b
mov eax, 0x51eb851f
mul edi
mov eax, dword [esi + 0x8048]
mov ecx, edx
shr ecx, 5
xor edx, edx
push 0
test ecx, ecx
je 0x40ad86
div ecx
mov edx, dword [ebx + 0x20]
push eax
push 0x402
push edx
jmp 0x40ad95
imul eax, eax, 0x64
div edi
push eax
mov eax, dword [ebx + 0x20]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
inc dword [esi + 0x8068]
push 4
mov dword [esi + 0x806c], 0
call ebx
mov word [esi + 0x402c], ax
movzx ecx, word [esi + 0x8068]
push ecx
call ebx
mov word [esi + 0x402e], ax
mov dword [esi + 0x8044], 4
jmp 0x40acae
mov edx, dword [esi + 0x8044]
mov ecx, dword [esi + 0x8050]
push 0
push edx
lea eax, [esi + 0x402c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
movzx edx, word [esi + 0x28]
push edx
call ebx
cmp ax, 3
jne 0x40ac0f
mov eax, dword [esi + 0x8040]
test eax, eax
je 0x40ac0f
mov ecx, dword [esi + 0x807c]
add ecx, 4
cmp eax, ecx
jae 0x40ac0f
mov eax, esi
call fcn.0040b250
lea ecx, [ebp - 0x130]
mov esi, eax
call fcn.00404590
mov eax, esi
jmp 0x40aeda
mov edx, dword [esi + 0x8058]
mov eax, dword [edx + 0x4c]
add esi, 0x8058
mov ecx, esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431c7a
mov esp, ebp
pop ebp
ret 0x10