Function at 0x40aad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [0x434298]
mov ebx, dword [esp + 0x110]
test eax, eax
je 0x40ab00
lea esi, [esi]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x40aaf0
mov esi, esi
lea edi, [edi]
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XPending
test eax, eax
je 0x40abb0
call fcn.00409b30
mov eax, dword [0x434304]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.libX11_6.dll_XNextEvent
mov dword [esp], ebx
call fcn.00409ca0
mov eax, dword [ebx]
sub eax, 4
cmp eax, 0x1d
ja case.0x40ab3d.9
jmp dword [eax*4 + 0x4276ec]
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call fcn.00408780
mov dword [esp], ebx
call fcn.0041d340
test al, al
jne case.0x40ab3d.13
mov dword [esp], ebx
call fcn.004082e0
test al, al
jne case.0x40ab3d.13
mov dword [esp], ebx
call fcn.0041a820
test al, al
jne case.0x40ab3d.13
mov dword [esp], ebx
call fcn.00418860
test al, al
je 0x40b2d0
movzx eax, byte [0x434300]
test al, al
je 0x40ab00
add esp, 0xfc
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x8ca0
call fcn.004201c0
call fcn.00409b30
cmp byte [0x434300], 0
je 0x40ab00
jmp 0x40aba0
mov eax, dword [0x4357f0]
cmp dword [ebx + 0x14], eax
je 0x40ac57
mov dword [esp], ebx
call fcn.00409a70
jmp 0x40ac18
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00405850
test eax, eax
mov esi, eax
je case.0x40ab3d.13
mov edx, dword [ebx + 0x14]
lea eax, [edx - 0x23]
cmp eax, 0x21
ja case.0x40ac04.38
jmp dword [eax*4 + 0x427764]
mov dword [esp], ebx
call fcn.00409960
test al, al
jne case.0x40ab3d.13
jmp case.0x40ab3d.9
mov eax, dword [0x4357fc]
cmp dword [ebx + 0x14], eax
jne case.0x40ab3d.9
mov eax, dword [ebx + 0x20]
cmp eax, dword [0x435808]
mov edx, dword [ebx + 0x24]
je 0x40b503
mov dword [0x435808], eax
mov dword [0x435804], edx
mov byte [0x4342ff], 1
mov byte [0x434300], 1
jmp 0x40aba0
mov dword [esp], ebx
call fcn.00409a00
movzx eax, byte [0x434300]
jmp 0x40ab98
mov dword [esp], ebx
call fcn.004099b0
test al, al
mov edi, eax
jne case.0x40ab3d.13
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00405850
test eax, eax
mov esi, eax
je 0x40b55a
lea eax, [esp + 0x80]
xor ebp, ebp
mov dword [esp + 0xc], eax
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x60]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00417d70
mov eax, dword [ebx + 0x34]
test al, 4
je 0x40ad0a
mov edx, dword [ebx + 0x20]
mov ecx, dword [esi + 0x14]
mov ebp, edi
cmp edx, ecx
je 0x40ad0a
mov edi, dword [esi + 0x60]
cmp edi, 5
je 0x40b6d1
jle 0x40b6e6
cmp edi, 6
je 0x40b6ef
cmp edi, 9
je 0x40b6ef
mov dword [esi + 0x14], edx
mov ebp, 1
test al, 8
je 0x40ad3d
mov edx, dword [ebx + 0x24]
mov ecx, dword [esi + 0x18]
cmp edx, ecx
je 0x40ad3d
mov edi, dword [esi + 0x60]
cmp edi, 5
je 0x40b6bc
jl 0x40ad35
sub edi, 7
cmp edi, 2
ja 0x40ad35
mov edi, edx
sub edi, ecx
sub dword [esi + 0x10], edi
mov dword [esi + 0x18], edx
mov ebp, 1
test al, 1
mov edi, ebp
je 0x40ad57
mov edx, dword [ebx + 0x18]
sub edx, dword [esp + 0x7c]
cmp edx, dword [esi + 0xc]
je 0x40ad57
mov dword [esi + 0xc], edx
mov edi, 1
test al, 2
je 0x40b2c3
mov edx, dword [ebx + 0x1c]
sub edx, dword [esp + 0x80]
cmp edx, dword [esi + 0x10]
je 0x40b2c3
test al, 0x40
mov dword [esi + 0x10], edx
je 0x40ada4
mov edi, 1
xor edx, edx
test al, 0x20
je 0x40ad87
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00405050
mov eax, edi
test al, al
je 0x40b514
mov eax, dword [esi + 0x90]
test eax, eax
je 0x40adb7
mov dword [esp], 0
call eax
cmp byte [esi + 0x84], 0
jne 0x40b381
test byte [esi + 0x81], 4
jne 0x40b487
and ebp, 1
jne 0x40b487
lea eax, [esp + 0x90]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
lea eax, [esi + 0x78]
mov dword [esp], eax
call fcn.00404340
mov eax, dword [esi + 4]
test eax, eax
je 0x40b396
mov edx, dword [esi + 0x10]
sub edx, dword [esp + 0x84]
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0xc]
sub edx, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.libX11_6.dll_XMoveWindow
mov dword [esp], esi
call fcn.00405b50
mov byte [0x434294], 1
movzx eax, byte [0x434300]
jmp 0x40ab98
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.0041a920
test al, al
jne case.0x40ab3d.13
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00405850
test eax, eax
mov esi, eax
je 0x40b930
test byte [eax + 0x78], 2
je 0x40b4a4
mov byte [0x434296], 1
movzx eax, byte [0x434300]
jmp 0x40ab98
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
cmp edx, eax
je 0x40aed1
cmp eax, dword [0x4357fc]
jne case.0x40ab3d.13
mov esi, dword [ebx + 8]
test esi, esi
je case.0x40ab3d.13
mov dword [esp], edx
call fcn.00405850
test eax, eax
mov esi, eax
je case.0x40ab3d.13
call fcn.0040c600
mov eax, dword [esi + 0x90]
test eax, eax
je 0x40aefb
mov dword [esp], 1
call eax
lea eax, [esp + 0x90]
mov dword [esp + 8], 0x11
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XCheckTypedWindowEvent
test eax, eax
jne 0x40b3d8
mov eax, dword [esi + 0x78]
test al, 2
jne 0x40af37
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x40af3f
test al, 4
je 0x40b86e
call fcn.0040c650
jmp case.0x40ab3d.13
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00405850
test eax, eax
mov esi, eax
je 0x40b54a
mov eax, dword [eax + 0x90]
test eax, eax
je 0x40af78
mov dword [esp], 1
call eax
mov dword [esp], esi
call fcn.00405520
movzx eax, byte [0x434300]
jmp 0x40ab98
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00405890
test eax, eax
je 0x40b528
mov edx, dword [ebx + 0x24]
test edx, edx
jne case.0x40ab3d.13
mov dword [esp], eax
call fcn.004026e0
movzx eax, byte [0x434300]
jmp 0x40ab98
mov dword [esp + 8], 0
jmp 0x40ab4b
cmp dword [ebx + 0x18], 1
jne case.0x40ab3d.13
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00405850
test eax, eax
je case.0x40ab3d.13
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x64], edx
mov dword [esp], eax
call fcn.00405c10
movzx eax, byte [0x434300]
jmp 0x40ab98
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00405850
test eax, eax
mov ebp, eax
je 0x40b449
mov eax, dword [ebx + 0x14]
cmp eax, dword [0x435680]
je 0x40b27f
cmp eax, dword [0x4356a0]
je 0x40b5ee
cmp eax, dword [0x4356b4]
je 0x40b3f4
cmp eax, dword [0x435720]
je 0x40b6fb
cmp eax, dword [0x435724]
je 0x40b771
cmp eax, dword [0x435790]
je 0x40b70f
cmp eax, dword [0x435728]
je 0x40b90e
cmp eax, dword [0x4356b8]
jne case.0x40ab3d.13
mov eax, dword [0x4356bc]
xor esi, esi
mov byte [esp + 0x34], 0
mov byte [esp + 0x33], 0
mov byte [esp + 0x2c], 0
xor edi, edi
mov byte [esp + 0x37], 0
mov byte [esp + 0x36], 0
mov edx, 1
mov dword [esp + 0x5c], eax
mov eax, dword [0x4356c0]
mov byte [esp + 0x35], 0
mov dword [esp + 0x38], eax
mov eax, dword [0x4356c4]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4356c8]
mov dword [esp + 0x40], eax
mov eax, dword [0x4356cc]
mov dword [esp + 0x44], eax
mov eax, dword [0x4356d0]
mov dword [esp + 0x48], eax
mov eax, dword [0x4356d4]
mov dword [esp + 0x4c], eax
mov eax, dword [0x4356d8]
mov dword [esp + 0x50], eax
mov eax, dword [0x4356dc]
mov dword [esp + 0x54], eax
mov eax, dword [0x4356e0]
mov dword [esp + 0x58], eax
xor eax, eax
mov ecx, dword [ebx + edx*4 + 0x1c]
cmp ecx, dword [esp + 0x5c]
je 0x40b9a8
cmp ecx, dword [esp + 0x38]
je 0x40b9b2
cmp ecx, dword [esp + 0x3c]
je 0x40ba67
cmp ecx, dword [esp + 0x40]
je 0x40ba5d
cmp ecx, dword [esp + 0x44]
je 0x40bdd9
cmp ecx, dword [esp + 0x48]
je 0x40bdcf
cmp ecx, dword [esp + 0x4c]
je 0x40bdc5
cmp ecx, dword [esp + 0x50]
je 0x40bdbb
cmp ecx, dword [esp + 0x54]
je 0x40bfc1
cmp ecx, dword [esp + 0x58]
mov ecx, 1
cmove esi, ecx
add edx, 1
cmp edx, 3
jne 0x40b10b
mov ecx, dword [ebx + 0x1c]
cmp ecx, 1
je 0x40bc65
cmp ecx, 2
je 0x40bb60
test ecx, ecx
je 0x40ba6f
mov dword [esp + 4], ecx
mov dword [esp], str.bad__NET_WM_STATE_action:__ld
call fcn.00408830
movzx eax, byte [esp + 0x34]
movzx ecx, byte [esp + 0x2c]
or eax, esi
mov esi, eax
movzx eax, byte [esp + 0x33]
or eax, esi
or cl, al
je case.0x40ab3d.13
mov dword [esp], ebp
call fcn.0040d660
movzx eax, byte [0x434300]
jmp 0x40ab98
cmp edx, dword [0x435684]
je 0x40b970
cmp edx, dword [0x435674]
je 0x40b985
cmp edx, dword [0x435740]
je 0x40b2e8
cmp edx, dword [0x435734]
je case.0x40ac04.39
cmp edx, dword [0x435784]
je 0x40b99b
cmp edx, dword [0x43578c]
je 0x40b99b
cmp edx, dword [0x43579c]
je 0x40b9d6
cmp edx, dword [0x435788]
jne case.0x40ac04.36
lea eax, [esi + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0040e000
mov edi, dword [esi + 4]
test edi, edi
je case.0x40ac04.36
mov dword [esp + 8], 1
mov eax, dword [esi + 0x7c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040d300
nop
lea esi, [esi]
test byte [esi + 0x78], 0x80
je case.0x40ab3d.13
jmp case.0x40ab3d.9
mov eax, dword [ebp + 0x90]
test eax, eax
je 0x40b292
mov dword [esp], 0
call eax
mov eax, dword [ebx + 0x1c]
cmp eax, 1
je 0x40b3bc
cmp eax, 3
je 0x40b5d2
test eax, eax
jne case.0x40ab3d.13
mov dword [esp], ebp
call fcn.00404d60
movzx eax, byte [0x434300]
jmp 0x40ab98
test al, 0x40
je 0x40ad9a
jmp 0x40ad7e
add esp, 0xfc
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call fcn.0040d860
mov dword [esp], esi
call fcn.004026e0
mov byte [0x434295], 1
mov byte [0x434294], 1
jmp case.0x40ac04.36
lea eax, [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XGetTransientForHint
jmp case.0x40ac04.36
test byte [esi + 0x7a], 1
jne 0x40b657
lea eax, [esi + 0x78]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0040de90
test byte [esi + 0x7a], 1
jne 0x40b61a
mov dword [esp], esi
call fcn.0040d660
jmp case.0x40ac04.36
mov dword [esp], esi
call fcn.0040dc20
mov dword [esp], esi
call fcn.00417230
test al, al
je 0x40b2e8
mov dword [esp], esi
call fcn.00402580
jmp 0x40b2e8
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004064c0
jmp 0x40adc4
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XMoveWindow
jmp 0x40ae51
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.004061b0
movzx eax, byte [0x434300]
jmp 0x40ab98
lea eax, [esp + 0x90]
mov dword [esp], eax
call fcn.00409ca0
mov dword [esp], esi
call fcn.00405520
jmp 0x40af3f
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x40b9ba
mov ecx, dword [ebp + 0x90]
test ecx, ecx
je 0x40b416
mov dword [esp], 0
call ecx
mov eax, dword [ebx + 0x1c]
test eax, eax
js case.0x40ab3d.13
cmp dword [0x43584c], eax
jle case.0x40ab3d.13
and dword [ebp + 0x78], 0xfffffff7
mov eax, dword [ebx + 0x1c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00405f40
movzx eax, byte [0x434300]
jmp 0x40ab98
mov eax, dword [ebx + 0x10]
cmp eax, dword [0x4357fc]
je 0x40b66c
mov edx, dword [ebx + 0x14]
cmp edx, dword [0x43572c]
je 0x40b9f7
cmp edx, dword [0x435794]
jne case.0x40ab3d.13
mov dword [esp], ebx
call fcn.00409870
movzx eax, byte [0x434300]
jmp 0x40ab98
mov dword [esp], esi
call fcn.00417230
mov dword [esp], esi
call fcn.004173f0
mov dword [esp], esi
call fcn.00402580
jmp 0x40ae51
call fcn.0040a940
mov eax, dword [esi]
or dword [esi + 0x78], 2
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XMapWindow
mov eax, dword [esi + 4]
test eax, eax
jne 0x40b858
mov eax, dword [esi + 0x78]
test al, 8
jne 0x40b4df
mov edx, dword [0x4342f8]
mov word [esi + 0x82], dx
test ah, 0x10
je 0x40b8f9
mov dword [esp], esi
call fcn.0040d660
mov byte [0x434295], 1
mov byte [0x434294], 1
jmp 0x40ae96
cmp edx, dword [0x435804]
jne 0x40ac45
jmp case.0x40ab3d.13
mov dword [esp], esi
call fcn.00405b50
movzx eax, byte [0x434300]
jmp 0x40ab98
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00405850
test eax, eax
je 0x40b9ea
test byte [eax + 0x78], 0x80
jne case.0x40ab3d.9
jmp case.0x40ab3d.13
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00409ab0
jmp 0x40ac18
mov eax, dword [ebx + 0x30]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x90]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XConfigureWindow
movzx eax, byte [0x434300]
jmp 0x40ab98
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00404cd0
movzx eax, byte [0x434300]
jmp 0x40ab98
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.004061b0
mov dword [esp], ebp
call fcn.00406220
mov dword [esp], ebp
call fcn.00405cb0
movzx eax, byte [0x434300]
jmp 0x40ab98
mov dword [esp], 0x18
call sub.msvcrt.dll_malloc
mov edx, dword [0x434298]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x1f4
mov dword [eax + 0xc], 0x404ba0
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edx
mov dword [0x434298], eax
jmp 0x40b34f
mov dword [esp + 4], esi
mov dword [esp], 0x404ba0
call fcn.0040a8f0
jmp 0x40b32c
mov eax, dword [ebx + 0x14]
cmp eax, dword [0x4357a0]
je 0x40bec0
cmp eax, dword [0x4357a4]
je 0x40bea8
cmp eax, dword [0x4357a8]
je 0x40be97
cmp eax, dword [0x43569c]
je 0x40be80
cmp eax, dword [0x4356ac]
jne case.0x40ab3d.13
call fcn.00408ef0
movzx eax, byte [0x434300]
jmp 0x40ab98
mov edi, edx
sub edi, ecx
mov ecx, edi
shr edi, 0x1f
add ecx, edi
sar ecx, 1
sub dword [esi + 0x10], ecx
jmp 0x40ad35
mov edi, edx
sub edi, ecx
mov ecx, edi
shr edi, 0x1f
add ecx, edi
sar ecx, 1
sub dword [esi + 0xc], ecx
jmp 0x40ad02
cmp edi, 3
jne 0x40ad02
mov edi, edx
sub edi, ecx
sub dword [esi + 0xc], edi
jmp 0x40ad02
mov dword [esp], ebp
call fcn.004054b0
movzx eax, byte [0x434300]
jmp 0x40ab98
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
sub ecx, dword [ebp + 0x10]
mov esi, eax
lea eax, [esp + 0x90]
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x8c]
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x60]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00417d70
mov edx, dword [esp + 0x2c]
mov eax, esi
mov ecx, edi
sub eax, dword [esp + 0x8c]
sub ecx, dword [esp + 0x90]
cmp edx, 0xb
ja case.0x40ab3d.13
jmp dword [edx*4 + 0x4277ec]
mov eax, dword [ebx + 0x1c]
mov edi, eax
movzx esi, al
sar edi, 8
test esi, esi
jne 0x40b783
mov esi, dword [ebp + 0x60]
lea eax, [esp + 0x90]
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 0xc], eax
lea eax, [esp + 0x8c]
mov dword [esp + 8], eax
call fcn.00417d70
test edi, 4
je 0x40b7d4
cmp esi, 5
mov ecx, dword [ebx + 0x28]
je 0x40bda5
jle 0x40bd8f
cmp esi, 6
je 0x40bd98
cmp esi, 9
je 0x40bd98
mov dword [ebp + 0x14], ecx
test edi, 8
je 0x40b7fd
cmp esi, 5
mov ecx, dword [ebx + 0x2c]
je 0x40bd79
jl 0x40b7fa
sub esi, 7
cmp esi, 2
ja 0x40b7fa
mov eax, ecx
sub eax, dword [ebp + 0x18]
sub dword [ebp + 0x10], eax
mov dword [ebp + 0x18], ecx
test edi, 1
je 0x40b812
mov eax, dword [ebx + 0x20]
sub eax, dword [esp + 0x8c]
mov dword [ebp + 0xc], eax
and edi, 2
je 0x40b824
mov eax, dword [ebx + 0x24]
sub eax, dword [esp + 0x90]
mov dword [ebp + 0x10], eax
test byte [ebp + 0x79], 4
jne 0x40bdf8
cmp byte [ebp + 0x84], 0
jne 0x40bde3
mov dword [esp], ebp
call fcn.00417230
mov dword [esp], ebp
call fcn.00402580
mov dword [esp], ebp
call fcn.00405b50
jmp 0x40ae51
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XMapWindow
jmp 0x40b4cb
and eax, 0xffffff9d
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XUngrabButton
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.00417f10
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [0x4357fc]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XReparentWindow
mov dword [esp], esi
call fcn.0040d660
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XRemoveFromSaveSet
mov dword [esp], esi
call fcn.00405520
jmp 0x40af3f
mov dword [esp], esi
call fcn.00405cb0
mov dword [esp], esi
call fcn.00404fd0
jmp 0x40b4e8
mov eax, dword [ebx + 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00405050
movzx eax, byte [0x434300]
jmp 0x40ab98
call fcn.0040c600
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00406610
test eax, eax
je 0x40bfcb
test byte [eax + 0x79], 0x10
jne 0x40b966
mov dword [esp], eax
call fcn.00405cb0
call fcn.0040c650
jmp 0x40ae96
mov dword [esp], esi
call fcn.0040ddd0
mov dword [esp], esi
call fcn.00405c10
jmp case.0x40ac04.36
lea eax, [esi + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0040db30
jmp case.0x40ac04.36
mov dword [esp], esi
call fcn.00416eb0
jmp case.0x40ac04.36
mov eax, 1
jmp 0x40b175
or edi, 2
jmp 0x40b175
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00405f70
movzx eax, byte [0x434300]
jmp 0x40ab98
mov eax, esi
call fcn.0040a940
mov dword [esp], esi
call fcn.0040d660
jmp 0x40b374
mov eax, dword [ebx + 0x24]
test eax, eax
setne al
jmp 0x40ac18
mov dword [esp + 4], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.0040e200
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0040d5c0
movzx eax, byte [0x434300]
jmp 0x40ab98
mov byte [esp + 0x35], 1
jmp 0x40b175
or edi, 1
jmp 0x40b175
test al, al
je 0x40ba83
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00405f70
mov eax, edi
test al, al
je 0x40ba98
movzx ecx, byte [ebp + 0x84]
test cl, cl
jne 0x40bf91
cmp byte [esp + 0x35], 0
je 0x40baa7
mov dword [esp], ebp
call fcn.00406220
cmp byte [esp + 0x36], 0
je 0x40babe
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00406290
cmp byte [esp + 0x37], 0
je 0x40bad5
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.004061b0
cmp byte [esp + 0x2c], 0
je 0x40baf3
mov eax, dword [ebp + 0x78]
test eax, 0x2000000
jne 0x40baf3
and eax, 0xffffffef
mov byte [0x434295], 1
mov dword [ebp + 0x78], eax
cmp byte [esp + 0x33], 0
je 0x40bb13
mov eax, dword [ebp + 0x78]
test eax, 0x4000000
jne 0x40bb13
and eax, 0xffdfffff
mov byte [0x434294], 1
mov dword [ebp + 0x78], eax
cmp byte [esp + 0x34], 0
je 0x40bb27
cmp byte [ebp + 0x85], 1
je 0x40bfa9
mov eax, esi
test al, al
je 0x40b1aa
cmp byte [ebp + 0x85], 3
jne 0x40b1aa
movzx eax, byte [ebp + 0x86]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00404e20
jmp 0x40b1aa
test al, al
je 0x40bb7e
test byte [ebp + 0x78], 8
je 0x40bd45
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00405f70
mov eax, edi
test al, al
je 0x40bb99
xor al, byte [ebp + 0x84]
mov dword [esp], ebp
movzx eax, al
mov dword [esp + 4], eax
call fcn.004064c0
cmp byte [esp + 0x35], 0
je 0x40bbb2
test byte [ebp + 0x78], 0x40
mov dword [esp], ebp
je 0x40bd5a
call fcn.00406220
cmp byte [esp + 0x36], 0
je 0x40bbd3
test byte [ebp + 0x79], 4
je 0x40bd64
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00406290
cmp byte [esp + 0x34], 0
je 0x40bbf7
cmp byte [ebp + 0x85], 1
je 0x40bfe4
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00404e20
mov eax, esi
test al, al
je 0x40bc1a
cmp byte [ebp + 0x85], 3
je 0x40bffc
mov dword [esp + 4], 3
mov dword [esp], ebp
call fcn.00404e20
cmp byte [esp + 0x2c], 0
je 0x40bc38
mov eax, dword [ebp + 0x78]
test eax, 0x2000000
jne 0x40bc38
xor eax, 0x10
mov byte [0x434295], 1
mov dword [ebp + 0x78], eax
cmp byte [esp + 0x33], 0
je 0x40b1aa
mov eax, dword [ebp + 0x78]
test eax, 0x4000000
jne 0x40b1aa
xor eax, 0x200000
mov byte [0x434294], 1
mov dword [ebp + 0x78], eax
jmp 0x40b1aa
test al, al
je 0x40bc79
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00405f70
mov eax, edi
test al, al
je 0x40bc94
or al, byte [ebp + 0x84]
mov dword [esp], ebp
movzx eax, al
mov dword [esp + 4], eax
call fcn.004064c0
cmp byte [esp + 0x35], 0
je 0x40bca3
mov dword [esp], ebp
call fcn.00404cf0
cmp byte [esp + 0x36], 0
je 0x40bcba
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00406290
cmp byte [esp + 0x37], 0
je 0x40bcd1
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00404cd0
cmp byte [esp + 0x2c], 0
je 0x40bcef
mov eax, dword [ebp + 0x78]
test eax, 0x2000000
jne 0x40bcef
or eax, 0x10
mov byte [0x434295], 1
mov dword [ebp + 0x78], eax
cmp byte [esp + 0x33], 0
je 0x40bd0f
mov eax, dword [ebp + 0x78]
test eax, 0x4000000
jne 0x40bd0f
or eax, 0x200000
mov byte [0x434294], 1
mov dword [ebp + 0x78], eax
cmp byte [esp + 0x34], 0
je 0x40bd26
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00404e20
mov eax, esi
test al, al
je 0x40b1aa
mov dword [esp + 4], 3
mov dword [esp], ebp
call fcn.00404e20
jmp 0x40b1aa
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00405f70
jmp 0x40bb7e
call fcn.00404cf0
jmp 0x40bbb2
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00406290
jmp 0x40bbd3
mov eax, ecx
sub eax, dword [ebp + 0x18]
mov esi, eax
shr esi, 0x1f
add eax, esi
sar eax, 1
sub dword [ebp + 0x10], eax
jmp 0x40b7fa
cmp esi, 3
jne 0x40b7d1
mov eax, ecx
sub eax, dword [ebp + 0x14]
sub dword [ebp + 0xc], eax
jmp 0x40b7d1
mov eax, ecx
sub eax, dword [ebp + 0x14]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
sub dword [ebp + 0xc], eax
jmp 0x40b7d1
mov byte [esp + 0x33], 1
jmp 0x40b175
mov byte [esp + 0x2c], 1
jmp 0x40b175
mov byte [esp + 0x37], 1
jmp 0x40b175
mov byte [esp + 0x36], 1
jmp 0x40b175
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.004064c0
jmp 0x40b83b
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00406290
jmp 0x40b82e
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x51
mov dword [esp], ebp
call fcn.00418ae0
jmp case.0x40ab3d.13
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x11
mov dword [esp], ebp
call fcn.00418ae0
jmp case.0x40ab3d.13
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x91
mov dword [esp], ebp
call fcn.00418ae0
jmp case.0x40ab3d.13
mov eax, dword [ebp + 0x90]
test eax, eax
je case.0x40ab3d.13
mov dword [esp], 0
call eax
jmp case.0x40ab3d.13
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call fcn.00408a80
movzx eax, byte [0x434300]
jmp 0x40ab98
call fcn.004199a0
movzx eax, byte [0x434300]
jmp 0x40ab98
mov dword [esp], 0
call fcn.00419980
movzx eax, byte [0x434300]
jmp 0x40ab98
call fcn.00419970
movzx eax, byte [0x434300]
jmp 0x40ab98
mov dword [esp], ebp
call fcn.00411f00
jmp case.0x40ab3d.13
mov dword [esp], ebp
call fcn.00419000
jmp case.0x40ab3d.13
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004118d0
jmp case.0x40ab3d.13
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x81
mov dword [esp], ebp
call fcn.00418ae0
jmp case.0x40ab3d.13
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0xa1
mov dword [esp], ebp
call fcn.00418ae0
jmp case.0x40ab3d.13
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x21
mov dword [esp], ebp
call fcn.00418ae0
jmp case.0x40ab3d.13
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x61
mov dword [esp], ebp
call fcn.00418ae0
jmp case.0x40ab3d.13
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41
mov dword [esp], ebp
call fcn.00418ae0
jmp case.0x40ab3d.13
not eax
mov dword [esp], ebp
and eax, ecx
movzx eax, al
mov dword [esp + 4], eax
call fcn.004064c0
jmp 0x40ba98
movzx eax, byte [ebp + 0x86]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00404e20
jmp 0x40bb27
mov byte [esp + 0x34], 1
jmp 0x40b175
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XMapWindow
jmp 0x40b966
movzx eax, byte [ebp + 0x86]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00404e20
jmp 0x40bbf7
movzx eax, byte [ebp + 0x86]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00404e20
jmp 0x40bc1a