Function at 0x403950
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [esi]
mov edx, dword [ebx + 0x380]
test edx, edx
jne 0x403990
test eax, eax
jne 0x403990
nop
lea esi, [esi]
mov eax, dword [edi]
cmp eax, 0x22
ja case.0x403987.0
jmp dword [eax*4 + 0x4238c8]
xor eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x80]
mov dword [esp], eax
call sub.cygwin1.dll_gettimeofday
mov eax, dword [ebx + 0x380]
test eax, eax
je 0x403980
cmp dword [ebp - 0x80], eax
jl 0x403980
jne 0x4039c0
mov eax, dword [ebx + 0x384]
cmp dword [ebp - 0x7c], eax
jl 0x403980
lea esi, [esi]
xor eax, eax
mov dword [ebx + 0x380], eax
mov dword [esp], str.data_loss:_timeout_on_INCR_selection_paste
call fcn.00412660
mov byte [ebx + 6], 0
mov eax, dword [edi]
cmp eax, 0x22
jbe switch.0x00403987
nop
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x14]
cmp edx, dword [ebx + 0xd4]
je 0x403de2
mov eax, dword [ebx + 0xe0]
test eax, eax
je 0x403e05
cmp edx, eax
jne case.0x403987.0
test byte [esi + 0x81], 0x20
je case.0x403987.0
mov dword [esp], esi
call fcn.004011e0
test eax, eax
je case.0x403987.0
movzx eax, byte [ebx]
test al, 4
je case.0x403987.0
or al, 2
mov byte [ebx], al
jmp case.0x403987.0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00402fa0
jmp case.0x403987.0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401090
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00402980
jmp case.0x403987.0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401090
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004027a0
jmp case.0x403987.0
mov edx, dword [edi + 0x10]
cmp edx, dword [esi + 0x78]
je 0x403fe8
test dword [ebx + 0xb0], 0x3000
je 0x403a96
cmp byte [ebx], 0
jns case.0x403987.0
mov eax, dword [esi + 0x3c]
cmp edx, eax
je 0x403e2d
movzx ecx, byte [esi + 0x5c]
test cl, cl
je case.0x403987.0
mov eax, dword [esi + 0x6c]
cmp edx, eax
jne case.0x403987.0
cmp cl, 0x6d
jne case.0x403987.0
jmp 0x403ac6
mov eax, dword [esi + 0x6c]
mov dword [esp + 0xc], edi
mov edx, 6
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.0041e855
test eax, eax
jne 0x403ac3
lea eax, [ebp - 0x84]
mov dword [esp + 0x20], eax
lea eax, [edi + 0x24]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x20]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x88]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x90]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x94]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.0042010c
movzx ecx, word [esi + 0x5e]
movsx edx, word [esi + 0x60]
movsx eax, cx
sub edx, eax
cmp word [esi + 0x66], 1
lea eax, [edx - 0xe]
je 0x403b52
lea eax, [edx - 0xa]
mov dword [esp + 8], eax
mov edx, dword [edi + 0x24]
movsx eax, cx
mov edi, 1
sub edx, eax
mov eax, dword [ebx + 0x54]
mov dword [esp], esi
sub edx, eax
mov dword [esp + 4], edx
call fcn.0040a150
movzx eax, byte [ebx + 2]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040a3b0
mov dword [ebx + 0x60], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040da40
jmp case.0x403987.0
cmp word [esi + 0x12], 0
jne case.0x403987.0
mov word [esi + 0x12], 1
mov edi, 1
or byte [ebx], 1
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401840
jmp case.0x403987.0
cmp word [esi + 0x12], 0
je case.0x403987.0
mov word [esi + 0x12], 0
or byte [ebx], 1
xor ebx, ebx
mov dword [esp + 4], ebx
jmp 0x403bbd
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x3c]
jne 0x403bf6
jmp 0x403fb6
mov eax, dword [edi + 0x10]
mov dword [esp + 4], eax
lea edx, [ebp - 0x78]
mov dword [esp + 0xc], edx
mov edx, 0xc
mov dword [esp + 8], edx
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.0041e855
test eax, eax
jne 0x403bf3
lea esi, [esi]
lea eax, [ebp - 0x78]
mov dword [esp + 0xc], eax
mov eax, 0xd
mov dword [esp + 8], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.0041e855
test eax, eax
jne 0x403c20
cmp byte [esi + 0x5c], 0
je 0x403c58
mov eax, dword [esi + 0x6c]
cmp dword [edi + 0x10], eax
je 0x404002
cmp word [esi + 0x74], 0
je case.0x403987.0
mov eax, dword [esi + 0x78]
cmp dword [edi + 0x10], eax
jne case.0x403987.0
mov dword [esp], esi
call fcn.00410070
jmp case.0x403987.0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x403dd9
dec eax
je 0x403ff9
mov byte [ebx + 2], 0
jmp case.0x403987.0
mov dword [esp], esi
call fcn.0040c590
jmp case.0x403987.0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040d820
jmp case.0x403987.0
mov word [esi + 0x14], 1
jmp case.0x403987.0
cmp dword [edi + 0x18], 0x20
jne case.0x403987.0
mov eax, dword [ebx + 0xdc]
cmp dword [edi + 0x1c], eax
jne case.0x403987.0
mov dword [esp], 0
call sub.cygwin1.dll_exit
lea esi, [esi]
mov dword [esp], edi
call fcn.0042023b
jmp case.0x403987.0
mov edx, dword [edi + 0x14]
cmp edx, dword [esi + 0x24]
jne case.0x403987.0
jmp 0x403d0e
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x20]
mov ecx, 0x16
mov dword [ebp - 0x9c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.0041e855
test eax, eax
jne 0x403d0b
mov edx, dword [ebp - 0x9c]
cmp dword [esi + 0x90], edx
jne 0x403d5c
mov eax, dword [ebp - 0x98]
cmp dword [esi + 0x94], eax
je 0x403d81
mov dword [esp], esi
mov eax, 1
mov edx, dword [ebp - 0x98]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.00406470
test byte [esi + 0x81], 0x20
je case.0x403987.0
mov dword [esp], esi
call fcn.004011e0
jmp 0x403a23
cmp byte [ebx + 6], 1
jne case.0x403987.0
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040c190
jmp case.0x403987.0
mov word [esi + 0x14], 0
jmp case.0x403987.0
mov byte [ebx + 2], 1
jmp case.0x403987.0
mov eax, dword [edi + 0x1c]
test eax, eax
jne case.0x403987.0
mov dword [esp + 8], edx
mov eax, dword [edi + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040c4a0
jmp case.0x403987.0
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x4238b7
mov dword [esp + 4], eax
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.0041fb6d
mov dword [ebx + 0xe0], eax
mov edx, dword [edi + 0x14]
jmp 0x403a0a
test dword [edi + 0x30], 0x500
je case.0x403987.0
jmp 0x403e3f
mov eax, dword [esi + 0x3c]
mov dword [esp + 0xc], edi
mov ecx, 6
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.0041e855
test eax, eax
jne 0x403e3c
lea eax, [ebp - 0x84]
mov dword [esp + 0x20], eax
lea eax, [edi + 0x24]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x20]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x88]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x90]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x94]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.0042010c
mov eax, dword [edi + 0x1c]
mov edx, dword [ebx + 0x14c]
sub eax, edx
cmp eax, 0x32
jbe case.0x403987.0
mov eax, dword [edi + 0x30]
and eax, 0x400
cmp eax, 1
sbb eax, eax
not eax
and eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x20]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040d570
movzx edx, word [esi + 0x16]
movzx eax, dx
mov word [ebp - 0xa0], dx
mov ecx, dword [edi + 0x24]
cmp ecx, eax
jl 0x404019
sub ecx, eax
movzx eax, word [esi + 0xa]
movzx edx, ax
mov word [ebp - 0x9e], ax
mov eax, ecx
mov dword [ebp - 0xac], edx
cdq
idiv dword [ebp - 0xac]
movzx edx, word [esi + 0x10]
dec edx
cmp eax, edx
jle 0x404049
mov dword [ebx + 0x50], 1
mov eax, dword [ebx + 0x38]
test eax, eax
jle 0x404055
movzx edx, word [ebp - 0xa0]
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x30]
and eax, 0x400
cmp eax, 1
sbb eax, eax
not eax
and eax, 2
mov dword [ebx + 0x4c], eax
cmp dword [edi + 0x24], edx
jge 0x404031
mov dword [ebx + 0x40], 0
mov ecx, edx
mov esi, dword [edi + 0x24]
sub ecx, esi
movzx edx, word [ebp - 0x9e]
mov eax, ecx
mov esi, edx
cdq
idiv esi
test eax, eax
mov ecx, eax
js 0x404061
sar ecx, 2
lea eax, [ecx + 1]
cmp eax, 2
jle 0x404029
mov dword [ebx + 0x3c], 2
jmp case.0x403987.0
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
movzx eax, word [esi + 6]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040bca0
or byte [ebx], 1
jmp case.0x403987.0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00410aa0
jmp case.0x403987.0
mov byte [ebx + 2], 2
jmp case.0x403987.0
mov byte [esi + 0x5c], 1
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040da40
jmp 0x403c58
movzx eax, word [esi + 0xa]
mov word [ebp - 0x9e], ax
jmp 0x403f36
mov dword [ebx + 0x3c], eax
jmp case.0x403987.0
movzx eax, word [esi + 6]
mov dword [ebx + 0x40], 1
mov ecx, dword [edi + 0x24]
lea eax, [edx + eax]
sub ecx, eax
jmp 0x403f87
mov dword [ebx + 0x50], 0
jmp case.0x403987.0
mov dword [ebx + 0x38], 2
jmp 0x403f48
add ecx, 3
jmp 0x403f9f