Function at 0x403bc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x18]
push edi
mov edi, 0x419bf0
push esi
mov esi, 0x4278bc
push ebx
sub esp, 0x19c
mov ebx, 0x403d70
mov dword [ebp - 0xd8], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xfc]
mov dword [esp], eax
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd4], esp
call fcn.0041e460
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp - 0x104]
mov ecx, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, ebx
add eax, 0x4c
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x104]
mov dword [ebx], 0x42b448
mov dword [ebx + 0x4c], 0
add ebx, 0x58
mov dword [eax + 0x58], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x10c], ebx
mov dword [esp], 0
mov dword [ebp - 0xf8], ecx
call fcn.0041b7c0
mov dword [ebx + 4], eax
mov edx, dword [ebp - 0x104]
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x34]
mov dword [edx + 0x58], eax
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x114], ebx
sub ebx, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x110]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.cygwin1.dll_memmove
mov edx, dword [ebp - 0x110]
mov eax, ebx
mov ebx, dword [ebp - 0x104]
add eax, edx
mov edx, dword [ebp - 0x10c]
mov dword [edx + 4], eax
mov ebx, dword [ebx + 0x58]
sub eax, ebx
mov dword [ebp - 0x118], ebx
sar eax, 2
cmp eax, 1
jle 0x403df3
mov dword [ebp - 0x11c], eax
mov edx, eax
sub edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
sar edx, 1
lea eax, [ebx + edx*4]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x160], eax
mov byte [esp + 0x10], 0
mov edx, dword [ebp - 0x160]
mov ebx, dword [ebp - 0x11c]
mov eax, dword [edx]
mov edx, dword [ebp - 0x118]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x120]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, 7
mov dword [ebp - 0xf8], eax
call fcn.004268c0
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x403df3
dec dword [ebp - 0x120]
sub dword [ebp - 0x160], 4
jmp 0x403d15
mov dword [esp], ebx
mov eax, 0xffffffff
mov dword [ebp - 0xf8], eax
call fcn.0041ea60
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403e02
mov dword [esp], eax
call fcn.0041b8c0
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x104]
lea ebx, [ebp - 0x68]
mov dword [ebp - 0x60], 0x40000001
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], 0
mov dword [edx + 0x6c], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 6
mov dword [0x42c010], edx
mov dword [ebp - 0x68], 0x401070
mov dword [esp + 4], ebx
mov dword [esp], 0xd
mov dword [ebp - 0xf8], eax
call sub.cygwin1.dll_sigaction
mov dword [esp + 4], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], 0xb
call sub.cygwin1.dll_sigaction
mov dword [esp + 4], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], 8
call sub.cygwin1.dll_sigaction
mov dword [esp + 4], ebx
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp], 0xf
call sub.cygwin1.dll_sigaction
mov dword [esp + 4], ebx
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp], 2
call sub.cygwin1.dll_sigaction
mov dword [esp + 4], ebx
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp], 0x14
call sub.cygwin1.dll_sigaction
mov dword [esp + 4], ebx
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp], 1
call sub.cygwin1.dll_sigaction
mov dword [esp + 4], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], 0x1e
call sub.cygwin1.dll_sigaction
mov dword [esp + 4], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], 0x1f
call sub.cygwin1.dll_sigaction
mov ebx, dword [ebp + 0x10]
mov dword [esp], ebx
call sub.cygX11_6.dll_XOpenDisplay
mov edx, dword [ebp - 0x104]
test eax, eax
mov dword [edx + 0x44], eax
jne 0x4040a5
mov dword [esp], 0x42c058
mov eax, str.BaseDisplay::BaseDisplay:_connection_to_X_server_failed._n
mov dword [esp + 0xc], eax
mov eax, 5
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call fcn.00416bd0
mov dword [ebp - 0x124], eax
call sub.cygwin1.dll___getreent
mov ebx, dword [ebp - 0x124]
mov dword [esp + 4], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 2
call sub.cygwin1.dll_exit
mov eax, dword [ebp - 0x80]
mov ebx, 0xffffffff
mov ecx, 3
mov dword [esp + 4], ebx
mov dword [ebp - 0xf8], ecx
lea edx, [eax - 0xc]
sub eax, 4
mov dword [ebp - 0x138], edx
mov dword [esp], eax
call fcn.0041a610
test eax, eax
jg 0x403fc0
mov eax, dword [ebp - 0x138]
lea ebx, [ebp - 0xa8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00420d20
lea esi, [esi]
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 0x58]
test eax, eax
je 0x403fd5
mov dword [esp], eax
call fcn.0041b8c0
mov eax, dword [ebp - 0x104]
mov ebx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x104]
add eax, 0x4c
mov dword [ebp - 0x14c], ebx
mov edx, dword [edx + 0x4c]
mov dword [ebp - 0x150], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 0x154], edx
cmp edx, ebx
mov dword [ebp - 0x158], ebx
je 0x404056
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 0x18]
mov edx, 0xffffffff
mov dword [esp + 4], edx
lea ebx, [eax - 0xc]
sub eax, 4
mov dword [esp], eax
mov eax, 1
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0xf8], eax
call fcn.0041a610
test eax, eax
jle 0x404091
add dword [ebp - 0x154], 0x2c
mov ebx, dword [ebp - 0x158]
cmp dword [ebp - 0x154], ebx
jne 0x40400c
mov edx, dword [ebp - 0x150]
mov eax, dword [edx]
test eax, eax
je 0x40406a
mov dword [esp], eax
call fcn.0041b8c0
mov ebx, dword [ebp - 0x14c]
jmp 0x403de0
mov dword [esp], ebx
lea eax, [ebp - 0xa8]
mov dword [esp + 4], eax
call fcn.00420d20
jmp 0x404041
mov edx, dword [ebp - 0x104]
mov eax, 1
mov edi, 2
mov dword [esp + 8], eax
mov esi, 6
mov dword [esp + 4], edi
mov eax, dword [edx + 0x44]
mov eax, dword [eax + 8]
mov dword [ebp - 0xf8], esi
mov dword [esp], eax
call sub.cygwin1.dll__fcntl64
inc eax
je 0x4044d8
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, 6
mov dword [ebp - 0xf8], eax
call sub.cygX11_6.dll_XDisplayName
mov edx, dword [ebp - 0x104]
mov dword [edx + 0x68], eax
mov eax, edx
add eax, 0xc
mov dword [esp + 8], eax
sub eax, 4
mov dword [esp + 4], eax
mov eax, dword [edx + 0x44]
mov dword [esp], eax
call sub.cygXext_6.dll_XShapeQueryExtension
mov ebx, dword [ebp - 0x104]
test eax, eax
mov eax, ebx
setne byte [ebx + 4]
add eax, 0x18
mov dword [esp + 0x10], eax
sub eax, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x100]
mov dword [esp + 8], eax
mov eax, str.Windows_WM
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call sub.cygX11_6.dll_XQueryExtension
test eax, eax
mov eax, 3
setne byte [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call sub.cygWindowsWM_7.dll_XWindowsWMSelectInput
mov dword [esp], 0x401050
call sub.cygX11_6.dll_XSetErrorHandler
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x88]
mov dword [esp + 4], eax
mov eax, ebx
add eax, 0x4c
mov dword [esp], eax
call fcn.00424830
xor eax, eax
mov dword [ebp - 0x12c], eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x88]
test eax, eax
jle 0x40427e
mov eax, dword [ebp - 0x104]
mov edx, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x104]
add eax, 0x4c
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
mov eax, 6
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [ebp - 0xf8], eax
call fcn.00401410
mov edx, dword [ebp - 0x130]
mov ebx, dword [ebp - 0x130]
mov edx, dword [edx + 4]
cmp edx, dword [ebx + 8]
mov dword [ebp - 0x134], edx
je 0x4044a3
test edx, edx
jne 0x40442c
mov ebx, dword [ebp - 0x130]
add dword [ebx + 4], 0x2c
mov eax, dword [ebp - 0x80]
lea edx, [eax - 0xc]
sub eax, 4
mov dword [ebp - 0x13c], edx
mov edx, 0xffffffff
mov dword [esp], eax
mov eax, 2
mov dword [esp + 4], edx
mov dword [ebp - 0xf8], eax
call fcn.0041a610
test eax, eax
jg 0x40425d
mov eax, dword [ebp - 0x13c]
lea ebx, [ebp - 0xa8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00420d20
inc dword [ebp - 0x12c]
mov edx, dword [ebp - 0x104]
mov ebx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x44]
cmp dword [eax + 0x88], ebx
jg 0x4041aa
mov eax, dword [ebp - 0x104]
mov edi, 6
mov dword [eax + 0x74], 0
mov dword [eax + 0x70], 0
mov eax, dword [eax + 0x44]
mov dword [ebp - 0xf8], edi
mov dword [esp], eax
call sub.cygX11_6.dll_XGetModifierMapping
mov dword [ebp - 0x140], eax
test eax, eax
je 0x404395
mov esi, dword [eax]
test esi, esi
jle 0x404395
mov ebx, 1
mov ecx, 2
mov edx, 4
mov dword [ebp - 0xc8], ebx
mov edi, 8
mov esi, 0x10
mov dword [ebp - 0xc4], ecx
mov ebx, 0x20
mov ecx, 0x40
mov dword [ebp - 0xc0], edx
mov edx, pe_nt_image_headers32
mov dword [ebp - 0xbc], edi
mov edi, 0xff7f
mov dword [ebp - 0xac], edx
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ecx
mov eax, dword [eax]
mov dword [esp + 4], edi
shl eax, 3
mov dword [ebp - 0x144], eax
mov eax, dword [edx + 0x44]
mov dword [esp], eax
call sub.cygX11_6.dll_XKeysymToKeycode
mov byte [ebp - 0x145], al
mov ebx, dword [ebp - 0x104]
mov esi, 0xff14
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call sub.cygX11_6.dll_XKeysymToKeycode
xor ecx, ecx
cmp ecx, dword [ebp - 0x144]
jae 0x404395
movzx edi, byte [ebp - 0x145]
movzx eax, al
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x17c], eax
mov esi, dword [edx + 4]
movzx eax, byte [esi + ecx]
test al, al
jne 0x404515
inc ecx
cmp ecx, dword [ebp - 0x144]
jb 0x404380
mov eax, dword [ebp - 0x104]
mov edx, dword [ebp - 0x104]
mov ebx, dword [ebp - 0x104]
mov dword [eax + 0x1c], 0
mov ecx, dword [eax + 0x70]
mov dword [eax + 0x20], 2
mov dword [ebx + 0x3c], 8
mov dword [eax + 0x24], ecx
mov eax, ecx
or eax, 2
mov dword [edx + 0x28], eax
mov eax, dword [edx + 0x74]
mov dword [edx + 0x2c], eax
mov edx, eax
or eax, ecx
mov dword [ebx + 0x34], eax
or edx, 2
or eax, 2
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x38], eax
mov ebx, dword [ebp - 0x140]
test ebx, ebx
je 0x404406
mov eax, dword [ebp - 0x140]
mov ecx, 6
mov dword [ebp - 0xf8], ecx
mov dword [esp], eax
call sub.cygX11_6.dll_XFreeModifiermap
mov eax, dword [ebp - 0x104]
mov dword [eax + 0x48], 0
lea eax, [ebp - 0xfc]
mov dword [esp], eax
call fcn.0041e500
add esp, 0x19c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x98]
mov edi, 4
mov dword [edx], eax
mov eax, dword [ebp - 0x94]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x90]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x88]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x84]
mov dword [edx + 0x14], eax
lea eax, [ebp - 0x80]
mov dword [esp + 4], eax
mov eax, edx
add eax, 0x18
mov dword [esp], eax
mov dword [ebp - 0xf8], edi
call fcn.00422d50
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x134]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x78]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x74]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [edx + 0x28], eax
jmp 0x40420c
mov edx, dword [ebp - 0x104]
lea ebx, [ebp - 0x98]
mov esi, 5
mov eax, dword [edx + 0x50]
mov dword [esp + 8], ebx
mov dword [ebp - 0xf8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call fcn.00423c30
jmp 0x404216
mov dword [esp], 0x42c058
mov ebx, str.BaseDisplay::BaseDisplay:_couldnt_mark_display_connection_as_close_on_exec_n
mov ecx, 6
mov dword [esp + 0xc], ebx
mov edx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.00416bd0
mov dword [ebp - 0x128], eax
call sub.cygwin1.dll___getreent
mov ebx, dword [ebp - 0x128]
jmp 0x403f58
movzx eax, al
cmp edi, eax
jne 0x404538
mov ebx, dword [ebp - 0x140]
mov eax, ecx
xor edx, edx
div dword [ebx]
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp + eax*4 - 0xc8]
mov dword [edx + 0x70], eax
mov ebx, dword [ebp - 0x140]
mov eax, dword [ebx + 4]
movzx eax, byte [eax + ecx]
cmp dword [ebp - 0x17c], eax
jne 0x40438c
mov eax, ecx
xor edx, edx
div dword [ebx]
mov ebx, dword [ebp - 0x104]
mov eax, dword [ebp + eax*4 - 0xc8]
mov dword [ebx + 0x74], eax
jmp 0x40438c