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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x48], 0
mov ebx, dword [eax]
mov dword [ebp - 0x3c], eax
mov edx, dword [eax + 4]
mov dword [ebp - 0x44], 0
mov edi, dword [ebx + 0x40]
mov dword [ebp - 0x4c], edx
mov dword [esp], ebx
shr edi, 0xc
and edi, 1
mov dword [ebp - 0x54], edi
call fcn.004047d0
mov dword [ebx + 0x14], eax
mov dword [esp], 0x20
call fcn.00409750
mov dword [eax], 0
xor edx, edx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], edx
add eax, 0x10
mov dword [esp], eax
call sub.cygwin1.dll_gettimeofday
test edi, edi
je 0x401245
cld
mov eax, dword [ebp - 0x6c]
mov ecx, 4
lea esi, [ebp - 0x28]
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ecx + 0x58]
push edx
push eax
fild qword [esp]
add esp, 8
test edx, edx
js 0x40141e
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fld dword [0x40f10c]
fnstcw word [ebp - 0x32]
movzx eax, word [ebp - 0x32]
fdiv st(1), st(0)
fxch st(1)
or ax, 0xc00
mov word [ebp - 0x34], ax
fldcw word [ebp - 0x34]
fistp dword [ebp - 0x38]
fldcw word [ebp - 0x32]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ecx + 0x58]
mov ebx, dword [ebp - 0x38]
push edx
push eax
fild qword [esp]
add esp, 8
test edx, edx
mov dword [ebp - 0x20], ebx
js 0x401429
push ebx
xor edi, edi
fild dword [esp]
fxch st(1)
add esp, 4
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fxch st(1)
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0
fmulp st(2)
fsubrp st(1)
fmul dword [0x40f110]
fldcw word [ebp - 0x34]
fistp dword [ebp - 0x1c]
fldcw word [ebp - 0x32]
call sub.cygwin1.dll_setitimer
test eax, eax
jne 0x401434
mov edx, dword [ebp - 0x58]
add edx, 0x10
mov dword [ebp - 0x5c], edx
jmp 0x4012eb
mov eax, dword [ecx + 0x34]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_write
mov dword [ebp - 0x6c], eax
test eax, eax
js 0x40134e
cdq
add dword [ebp - 0x48], eax
mov esi, edx
mov ebx, eax
fldz
adc dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
fld qword [eax + 0x60]
fucompp
fnstsw ax
sahf
ja 0x4013c4
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x4012b0
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebx]
cdq
sub dword [ecx + 0x58], eax
sbb dword [ecx + 0x5c], edx
mov eax, dword [0x413084]
test eax, eax
jne 0x401370
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x4012e0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov edx, dword [eax + 0x5c]
mov eax, dword [eax + 0x58]
cmp edx, 0
ja 0x4012e0
cmp eax, 0
jbe 0x401370
lea esi, [esi]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x401370
mov dword [ebp - 0x50], 1
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebx]
test byte [ecx + 0x40], 0x10
je 0x401253
mov dword [esp + 4], ecx
mov edi, dword [ebp - 0x4c]
mov dword [esp], edi
call fcn.00402150
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00402120
test eax, eax
mov ecx, dword [ebx]
setne al
movzx eax, al
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 8], eax
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_write
mov dword [ebp - 0x6c], eax
test eax, eax
jns 0x40127a
mov dword [esp], str.write2
mov ebx, 0xa1
mov ecx, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Client.cpp
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.004095f0
lea esi, [esi]
mov ebx, dword [ebp - 0x5c]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll_gettimeofday
mov edi, dword [ebp - 0x3c]
fldz
mov ecx, dword [edi]
fld qword [ecx + 0x60]
fucompp
fnstsw ax
sahf
je 0x4013f7
mov edi, dword [ebp - 0x58]
mov dword [esp + 4], edi
mov eax, dword [ecx + 0x14]
mov dword [esp], eax
call fcn.00404d20
mov dword [esp], edi
call fcn.00409730
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.00404d90
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x5c]
mov dword [esp], edx
call sub.cygwin1.dll_gettimeofday
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x3c]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], esi
mov dword [esp + 4], edi
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.00404c10
jmp 0x40129a
jp 0x401392
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov dword [esp + 4], ebx
mov eax, dword [ecx + 0x14]
mov dword [esp], eax
call fcn.00404c10
mov ecx, dword [edi]
jmp 0x401392
fadd dword [0x40f108]
jmp 0x4011bf
fadd dword [0x40f108]
jmp 0x401203
mov dword [esp], str.setitimer
call sub.cygwin1.dll_perror
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]