Function at 0x401b90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10c
mov dword [esp], 0x411678
call sub.cygX11_6.dll_XOpenDisplay
mov dword [0x4141b0], eax
test eax, eax
je 0x402373
mov dword [esp], eax
call fcn.00409580
mov eax, dword [0x4141b0]
mov dword [esp], eax
call fcn.0040a320
mov eax, dword [0x413008]
test eax, eax
jne 0x4021a0
mov dword [esp], 0
call fcn.004088d0
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XConnectionNumber
mov dword [0x4140e0], eax
mov edx, dword [0x4141b0]
mov eax, dword [edx + 0x84]
mov edx, dword [edx + 0x8c]
mov dword [0x414080], eax
lea eax, [eax + eax*4]
shl eax, 4
mov eax, dword [eax + edx + 8]
mov edx, dword [0x41304c]
mov dword [0x414060], eax
test edx, edx
je 0x4021ba
mov dword [esp], edx
lea eax, [ebp - 0x58]
mov ecx, 0x4130c0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x5c]
mov edi, 0x4141c4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov esi, 0x4141c0
mov dword [esp + 8], eax
lea eax, [ebp - 0x64]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
call fcn.0040af20
mov dword [esp], 0
mov ebx, eax
mov eax, 0x41409c
mov dword [esp + 0x14], eax
mov eax, 0x414098
mov dword [esp + 0x10], eax
mov eax, 0x414094
mov dword [esp + 0xc], eax
mov eax, 0x414090
mov dword [esp + 8], eax
mov eax, dword [0x4130c0]
mov dword [esp + 4], eax
call fcn.0040a7d0
mov dword [esp + 0xc], edi
mov eax, 0x4141cc
mov ecx, 0xffffffff
mov dword [esp + 0x14], eax
mov eax, 0x4141c8
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], 0
call fcn.0040a7d0
mov eax, dword [0x41409c]
mov edx, dword [0x414094]
sar eax, 1
add eax, edx
mov dword [0x414150], eax
mov eax, dword [0x413048]
test eax, eax
je 0x402141
mov eax, dword [0x41100c]
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XLoadQueryFont
mov dword [0x414100], eax
test eax, eax
jne 0x401d2d
mov eax, 0x4114e0
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XLoadQueryFont
mov dword [0x414100], eax
test eax, eax
je 0x4021ff
mov eax, dword [0x413048]
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XLoadQueryFont
mov dword [0x414190], eax
test eax, eax
mov edx, eax
je 0x4021da
mov esi, dword [edx + 0x48]
mov ecx, 1
mov eax, dword [edx + 0x4c]
mov dword [0x414130], ecx
mov edx, 4
mov dword [0x411048], edx
mov edx, dword [0x411008]
add eax, esi
mov dword [0x414180], eax
lea ecx, [eax + 8]
add eax, 0xa
mov dword [0x414070], ecx
mov esi, dword [0x414098]
dec edx
imul edx, eax
sub esi, 8
mov dword [0x411050], esi
add edx, ecx
test bl, 0x20
mov dword [0x41104c], edx
je 0x402150
mov eax, dword [0x413034]
test eax, eax
je 0x40222e
mov eax, dword [ebp - 0x60]
neg eax
cmp eax, dword [0x414150]
jl 0x402312
mov edi, dword [0x413030]
xor eax, eax
test edi, edi
je 0x401de5
mov edi, dword [0x411004]
mov eax, edx
cmp edx, edi
jle 0x401de3
mov eax, edi
sub eax, edx
mov edi, eax
mov eax, dword [0x414094]
add edi, eax
mov dword [ebp - 0x60], edi
test bl, 0x10
je 0x402240
and ebx, 0x20
cmp ebx, 1
sbb eax, eax
and eax, 0xfffffffa
add eax, 9
mov dword [ebp - 0x24], eax
mov eax, dword [0x414090]
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0x58], edx
mov edx, dword [0x411048]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x64], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x40], eax
lea eax, [ecx*8 + 0xe]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x68], 0x37f
mov dword [ebp - 0x5c], esi
add eax, edx
mov dword [0x414140], eax
mov eax, dword [0x4142b0]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x54], esi
cmp eax, 1
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov dword [0x4141f0], edi
mov dword [ebp - 0xd8], eax
ja 0x402253
mov ebx, dword [0x4141b0]
mov eax, dword [0x414080]
mov ecx, dword [ebx + 0x8c]
lea eax, [eax + eax*4]
shl eax, 4
mov edx, dword [eax + ecx + 0x34]
mov eax, dword [eax + ecx + 0x38]
mov dword [0x414160], edx
mov dword [0x413130], edx
mov dword [0x413150], edx
mov edx, dword [0x41105c]
mov dword [0x4140f0], eax
mov dword [0x413120], eax
test edx, edx
mov dword [0x413140], eax
js 0x402300
mov eax, dword [0x4132c4]
shl edx, 5
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0xa4], eax
xor eax, eax
mov dword [ebp - 0x9c], eax
mov eax, dword [0x4142c0]
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0xd4]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0xa8]
mov dword [esp + 0x2c], eax
mov eax, 0x200a
mov dword [esp + 0x28], eax
mov eax, dword [0x4142d0]
mov dword [esp + 0x10], esi
mov esi, 0x413160
mov dword [esp + 0x24], eax
mov eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0xd8]
mov dword [esp + 8], edi
mov edi, 1
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x414060]
mov dword [esp + 4], eax
call sub.cygX11_6.dll_XCreateWindow
mov dword [0x4141e0], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.WM_DELETE_WINDOW
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XInternAtom
mov dword [0x413160], eax
mov eax, dword [0x4141e0]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XSetWMProtocols
mov dword [ebp - 0xc4], ebx
mov eax, dword [0x414170]
lea ebx, [ebp - 0xb8]
inc eax
mov dword [ebp - 0xc8], eax
mov dword [esp], eax
call fcn.0040a1a0
mov dword [ebp - 0xc0], eax
mov dword [esp], str.FvwmTaskBar
call fcn.0040a1a0
mov dword [ebp - 0xbc], eax
mov ecx, 1
lea eax, [ebp - 0xc8]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.cygX11_6.dll_XStringListToTextProperty
test eax, eax
je 0x4023ad
mov dword [esp + 0xc], ebx
lea eax, [ebp - 0xc0]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [0x4141e0]
mov dword [esp + 8], ebx
mov ebx, 1
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XSetWMProperties
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call sub.cygX11_6.dll_XFree
mov dword [esp + 4], ebx
xor eax, eax
mov ecx, 1
mov dword [esp + 0x24], eax
xor eax, eax
mov edx, 0x8000
mov dword [esp + 0x20], eax
mov eax, 1
mov edi, 1
mov dword [esp + 0x1c], eax
mov eax, dword [0x4141e0]
mov esi, 0x203c
mov dword [esp + 0x18], edi
inc ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov eax, dword [0x4141b0]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.cygX11_6.dll_XGrabButton
cmp ebx, 5
jle 0x402050
call fcn.004011e0
mov edx, dword [0x41105c]
test edx, edx
js 0x402106
xor eax, eax
shl edx, 5
mov dword [esp + 0x1c], eax
mov eax, dword [0x413098]
mov dword [esp + 0x18], eax
mov eax, dword [0x4142b0]
mov dword [esp + 0x14], eax
mov eax, dword [0x4132c4]
add edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [0x41104c]
mov dword [esp + 0xc], eax
mov eax, dword [0x411050]
mov dword [esp + 8], eax
mov eax, dword [0x4141e0]
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call fcn.004090e0
mov eax, 0x28071
mov dword [esp + 8], eax
mov eax, dword [0x4141e0]
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XSelectInput
call fcn.004077d0
mov dword [esp], 0x4023d0
call sub.cygwin1.dll_atexit
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41100c]
mov dword [0x413048], eax
jmp 0x401cf0
mov eax, dword [0x413034]
test eax, eax
je 0x40230a
mov eax, dword [0x414150]
cmp dword [ebp - 0x60], eax
jl 0x401dc9
mov eax, dword [0x41409c]
mov dword [ebp - 0xd0], eax
mov eax, dword [0x413030]
test eax, eax
je 0x40235d
mov edi, dword [0x411004]
mov eax, edx
cmp edx, edi
jle 0x402191
mov eax, edi
mov edi, dword [ebp - 0xd0]
sub edi, eax
mov eax, edi
jmp 0x401de5
mov dword [esp], eax
call fcn.0040a700
mov eax, dword [0x413008]
mov dword [esp], eax
call sub.cygwin1.dll_free
jmp 0x401bd7
mov dword [esp], 0x41304c
mov ebx, str.0_0
mov dword [esp + 4], ebx
call fcn.004070b0
mov edx, dword [0x41304c]
jmp 0x401c29
mov eax, 0x4114e0
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XLoadQueryFont
mov dword [0x414190], eax
test eax, eax
mov edx, eax
jne 0x401d52
call sub.cygwin1.dll___getreent
mov edx, dword [0x414170]
mov edi, 0x41169c
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov edi, dword [0x41409c]
mov eax, dword [ebp - 0x60]
sub edi, edx
jmp 0x401dec
and ebx, 0x20
cmp ebx, 1
sbb eax, eax
and eax, 0xfffffffa
add eax, 7
jmp 0x401e08
mov eax, dword [str.white]
mov dword [esp], eax
call fcn.00409c20
mov dword [0x414160], eax
mov eax, dword [0x411018]
mov dword [esp], eax
call fcn.00409c20
mov dword [0x4140f0], eax
mov eax, dword [str.white]
mov dword [esp], eax
call fcn.00409c20
mov dword [0x413130], eax
mov eax, dword [0x411010]
mov dword [esp], eax
call fcn.00409c20
mov dword [0x413120], eax
mov eax, dword [0x413054]
test eax, eax
jne 0x402350
mov eax, dword [0x414160]
mov dword [0x413150], eax
mov eax, dword [0x413050]
test eax, eax
jne 0x402343
mov eax, dword [0x4140f0]
mov dword [0x413140], eax
mov eax, dword [ebp - 0x64]
mov edx, dword [0x41105c]
mov ebx, dword [0x4141b0]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x58]
test edx, edx
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0xdc], eax
mov eax, dword [0x4142b0]
mov dword [ebp - 0xd8], eax
jns 0x401ecd
mov eax, dword [0x414160]
jmp 0x401ed9
mov edi, dword [ebp - 0x60]
jmp 0x401df1
mov eax, dword [0x41409c]
mov dword [ebp - 0xcc], eax
mov eax, dword [0x413030]
test eax, eax
je 0x402368
mov edi, dword [0x411004]
mov eax, edx
cmp edx, edi
jle 0x402334
mov eax, edi
mov edi, dword [ebp - 0xcc]
sub edi, eax
mov eax, edi
jmp 0x401de5
mov dword [esp], eax
call fcn.00409c20
jmp 0x4022c4
mov dword [esp], eax
call fcn.00409c20
jmp 0x4022ad
mov eax, dword [ebp - 0xd0]
jmp 0x401de3
mov eax, dword [ebp - 0xcc]
jmp 0x401de3
mov dword [esp], 0x411678
call sub.cygX11_6.dll_XDisplayName
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], ebx
mov edx, dword [0x414170]
mov esi, str._s:_cant_open_display__s
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x402222
call sub.cygwin1.dll___getreent
mov edx, dword [0x414170]
mov dword [esp + 8], edx
mov edx, str._s:_Failed_to_convert_name_to_XText_n
mov dword [esp + 4], edx
jmp 0x402217