Function at 0x4016e0
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x40]
shr eax, 0xc
push edi
xor ebp, ebp
and al, 1
push ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0x16], al
call fcn.00404df0
mov ecx, dword [esi]
push 0x20
mov dword [ecx + 0x14], eax
call fcn.00409dbb
lea edx, [esi + 0x10]
mov ebx, eax
push ebp
push edx
mov dword [ebx], ebp
call fcn.00401c80
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x4011c0
mov edi, dword [esi]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x20], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x24], eax
fild qword [esp + 0x20]
and ecx, 0x80000000
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebp
fild qword [esp + 0x20]
fchs
faddp st(1)
fld qword [0x41d308]
fdiv st(1), st(0)
fxch st(1)
call fcn.004098e0
mov dword [esp + 0x30], eax
mov edx, dword [edi + 0x58]
mov edi, dword [edi + 0x5c]
mov eax, edi
mov dword [esp + 0x20], edx
and edi, 0x7fffffff
mov dword [esp + 0x24], edi
fild qword [esp + 0x20]
and eax, 0x80000000
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebp
fild qword [esp + 0x20]
fchs
faddp st(1)
fild dword [esp + 0x30]
fmulp st(2)
fsubrp st(1)
fmul qword [0x41d300]
call fcn.004098e0
mov dword [esp + 0x34], eax
push ebp
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.00406b50
add esp, 0xc
test eax, eax
je 0x4011c0
push str.setitimer
call fcn.00409ccf
add esp, 4
push 1
call fcn.00409c20
lea esp, [esp]
mov eax, dword [esi]
test byte [eax + 0x40], 0x10
je 0x4011e7
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00401c40
mov edx, dword [esi]
push edx
call fcn.00401c00
add esp, 0xc
test eax, eax
setne byte [esp + 0x13]
jmp 0x4011ec
mov byte [esp + 0x13], 1
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x2c]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x40127b
fldz
mov ecx, dword [esi]
fcomp qword [ecx + 0x60]
cdq
mov edi, eax
add dword [esp + 0x18], edi
mov ebp, edx
fnstsw ax
adc dword [esp + 0x1c], ebp
test ah, 5
jp 0x401241
lea edx, [ebx + 0x10]
push 0
push edx
call fcn.00401c80
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push ebx
push ecx
call fcn.00405120
add esp, 0x10
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x401251
mov eax, dword [esi]
sub dword [eax + 0x58], edi
sbb dword [eax + 0x5c], ebp
cmp dword [0x425534], 0
jne 0x401292
test cl, cl
jne 0x40126e
mov eax, dword [esi]
cmp dword [eax + 0x5c], 0
jb 0x401292
ja 0x40126e
cmp dword [eax + 0x58], 0
jbe 0x401292
cmp byte [esp + 0x13], 0
jne 0x4011c0
jmp 0x401292
push 0xa1
push str..._srcClient.cpp
push str.write2
call fcn.00401b20
add esp, 0xc
lea edx, [ebx + 0x10]
push 0
push edx
call fcn.00401c80
mov eax, dword [esi]
fld qword [eax + 0x60]
add esp, 8
fcomp qword [0x41d2e8]
fnstsw ax
test ah, 0x44
jp 0x4012cf
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push ebx
push ecx
call fcn.00405120
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push ebx
push eax
call fcn.004051b0
push ebx
call fcn.0040998b
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00405200
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
sub esp, 0x1c
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
xor ebp, ebp
test eax, 0x800
mov dword [esp + 0xc], ebp
mov dword [esp + 0x18], ebp
jne 0x401712
pop esi
pop ebp
add esp, 0x1c
jmp 0x4010a0
shr eax, 0xc
push ebx
and al, 1
push edi
mov byte [esp + 0x13], al
je 0x40176a
lea edi, [esi + 8]
push ebp
push edi
call fcn.00401c80
mov eax, dword [esi]
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x5c]
mov dword [esp + 0x2c], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x30], eax
fild qword [esp + 0x2c]
and ecx, 0x80000000
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebp
fild qword [esp + 0x2c]
mov ecx, edi
fchs
faddp st(1)
fdiv qword [0x41d308]
fstp qword [esp]
call fcn.00401000
mov eax, dword [esi]
test dword [eax + 0x40], 0x800
je 0x40182e
mov edx, dword [eax + 0x50]
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x24], edx
mov edx, ecx
and ecx, 0x7fffffff
mov dword [esp + 0x28], ecx
fild qword [esp + 0x24]
and edx, 0x80000000
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebp
fild qword [esp + 0x24]
fchs
faddp st(1)
fdivr qword [0x41d340]
fimul dword [eax + 0x34]
call fcn.004098e0
fld qword [0x41d2b8]
cmp eax, ebp
mov dword [esp + 0x14], eax
jl 0x4017d2
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4017fc
fidivr dword [esp + 0x14]
sub esp, 8
fstp qword [esp]
push str.WARNING:_delay_too_large__reducing_from__.1f_to_1.0_seconds._n
call fcn.00409f74
add eax, 0x40
push eax
call fcn.00409e25
add esp, 0x10
mov dword [esp + 0x14], 0xf4240
jmp 0x4017fe
fstp st(0)
mov eax, dword [esi]
mov ecx, dword [eax + 0x40]
test cl, 0x10
je 0x40182e
test cl, 2
push eax
je 0x40181f
push 0xc
call fcn.00401c30
add esp, 8
add dword [esp + 0x18], 0xc
jmp 0x40182e
push 0x24
call fcn.00401c30
add esp, 8
add dword [esp + 0x18], 0x24
mov eax, dword [esi]
push eax
call fcn.00404df0
mov ecx, dword [esi]
push 0x20
mov dword [ecx + 0x14], eax
call fcn.00409dbb
mov edi, eax
lea ebx, [esi + 0x10]
push ebp
push ebx
mov dword [edi], ebp
call fcn.00401c80
add esp, 0x10
lea ebp, [edi + 0x10]
push 0
push ebp
call fcn.00401c80
mov edx, dword [esi]
add esp, 8
test dword [edx + 0x40], 0x800
je 0x4018d5
mov eax, dword [edi]
lea ecx, [eax + 1]
push eax
mov dword [edi], ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
mov ecx, dword [ebp]
mov eax, dword [ebx]
mov edx, dword [ebp + 4]
sub eax, ecx
mov ecx, dword [edi + 0x14]
imul eax, eax, 0xf4240
add eax, dword [ebx + 4]
sub eax, edx
add eax, dword [esp + 0x14]
mov edx, dword [ebp]
test eax, eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
jg 0x4018d1
cmp dword [esp + 0x20], 0
jle 0x4018d5
add dword [esp + 0x20], eax
mov eax, dword [esi]
test byte [eax + 0x40], 0x10
je 0x4018fc
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00401c40
mov ecx, dword [esi]
push ecx
call fcn.00401c00
add esp, 0xc
test eax, eax
setne byte [esp + 0x12]
jmp 0x401901
mov byte [esp + 0x12], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, dword [esi + 4]
push 0
push edx
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x4019a6
cdq
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push edi
push ecx
mov dword [esp + 0x30], edx
call fcn.00405120
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jle 0x40194e
push eax
call fcn.00401a50
add esp, 4
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x401966
mov eax, dword [esi]
mov edx, dword [esp + 0x24]
sub dword [eax + 0x58], edx
mov edx, dword [esp + 0x28]
sbb dword [eax + 0x5c], edx
cmp dword [0x425534], 0
jne 0x4019bd
test cl, cl
je 0x401989
mov eax, dword [ebp]
mov ecx, dword [esi + 8]
cmp ecx, eax
mov edx, dword [ebp + 4]
jl 0x4019bd
jne 0x401999
cmp dword [esi + 0xc], edx
jl 0x4019bd
jmp 0x401999
mov eax, dword [esi]
cmp dword [eax + 0x5c], 0
jb 0x4019bd
ja 0x401999
cmp dword [eax + 0x58], 0
jbe 0x4019bd
cmp byte [esp + 0x12], 0
jne 0x401856
jmp 0x4019bd
push 0x131
push str..._srcClient.cpp
push str.write2
call fcn.00401b20
add esp, 0xc
push 0
push ebp
call fcn.00401c80
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push edi
push ecx
call fcn.004051b0
mov edx, dword [esi]
add esp, 0x10
test dword [edx + 0x40], 0x800
je 0x401a30
mov eax, dword [edi]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
neg eax
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp]
push edx
call ebx
mov ebp, dword [esp + 0x1c]
mov dword [ebp + 4], eax
mov eax, dword [edi + 0x14]
push eax
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
test dword [eax + 0x40], 0x4000
je 0x401a29
mov ecx, dword [eax + 0x34]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x2c]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x401a30
mov ecx, esi
call fcn.00401490
push edi
call fcn.0040998b
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00405200
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret