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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
lea esi, [ebx + 0x10]
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
lea ecx, [ebx + 0xd8]
mov dword [esp + 0x14], ecx
mov edx, dword [eax - 0xc]
test edx, edx
je 0x40f03e
lea esi, [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
movsx eax, byte [eax + ecx]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00411f10
mov ebp, dword [ebx + 0xd8]
cmp ebp, dword [ebx + 0xdc]
je 0x40f02a
lea esi, [esi]
mov edi, dword [ebp]
add ebp, 4
mov eax, dword [edi]
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [eax + 4]
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0x10]
cmp dword [ebx + 0xdc], ebp
jne 0x40eff8
mov eax, dword [ebx + 0xd8]
cmp ebp, eax
je 0x40f02a
mov dword [ebx + 0xdc], eax
mov eax, dword [esp + 0x18]
add dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
cmp edx, dword [eax - 0xc]
jb 0x40efc8
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00413880
sub esp, 4
mov eax, dword [esp + 0x2c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x40f06b
mov eax, dword [esp + 0x1c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 4
call sub.cygwin1.dll___stack_chk_fail
push esi
push ebx
sub esp, 0x24
mov edx, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x1c], edx
xor edx, edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, dword [eax]
lea ebx, [ecx + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [edx + 4]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00413880
sub esp, 4
mov eax, dword [esp + 0x1c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x40f0c1
add esp, 0x24
mov eax, esi
pop ebx
pop esi
ret 4
call sub.cygwin1.dll___stack_chk_fail
lea esi, [esi]
lea esi, [esi]
push esi
push ebx
sub esp, 0x24
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x1c], eax
xor eax, eax
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
lea eax, [esi + 0x10]
mov dword [esp], eax
call fcn.00413c60
test al, al
je 0x40f11b
mov eax, dword [esi + 0xf0]
mov edx, dword [esi + 0xf4]
xor eax, dword [ebx + 0xf0]
xor edx, dword [ebx + 0xf4]
or eax, edx
sete al
mov edx, dword [esp + 0x1c]
sub edx, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x40f12d
add esp, 0x24
pop ebx
pop esi
ret
call sub.cygwin1.dll___stack_chk_fail
lea esi, [esi]
lea esi, [esi]
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x4c], ecx
xor ecx, ecx
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov ebp, dword [edi + 0xe4]
lea ecx, [edi + 0xe4]
mov dword [esp + 0x2c], edi
cmp ecx, ebp
je 0x40f298
add eax, 0xffffffce
mov dword [esp + 0x20], 0
mov ebx, ebp
mov edi, ebp
adc edx, 0xffffffff
xor esi, esi
mov ebp, esi
lea esi, [esi]
cmp eax, dword [ebx + 0x10]
mov esi, edx
sbb esi, dword [ebx + 0x14]
jb 0x40f1a4
mov esi, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x20], esi
mov ebx, dword [ebx]
cmp ecx, ebx
jne 0x40f190
lea eax, [esp + 0x30]
mov dword [esp + 0x24], ebp
mov ebp, edi
mov dword [esp + 0x34], eax
mov edi, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebx
jmp 0x40f1ce
cmp dword [esp + 0x28], ebp
je 0x40f24c
mov ebx, ebp
mov ebp, dword [ebp]
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
call fcn.0040ef40
test al, al
je 0x40f1c8
cmp edi, ebx
je 0x40f1c8
cmp edi, ebp
je 0x40f1c8
mov dword [esp], edi
mov dword [esp + 8], ebp
mov dword [esp + 4], ebx
call fcn.00451080
mov edi, dword [esp + 0x30]
jmp 0x40f1c8
mov eax, edi
mov edi, dword [edi]
mov dword [esp + 4], 0x18
mov dword [esp], eax
call sub.cygstdc_6.dll_operator_delete_void__unsigned_int_
lea eax, [esp + 0x30]
cmp edi, eax
jne 0x40f238
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [ecx + 0xf0]
mov edx, dword [ecx + 0xf4]
mov dword [ecx + 0xf0], esi
mov dword [ecx + 0xf4], edi
xor eax, esi
xor edx, edi
or eax, edx
setne al
mov edx, dword [esp + 0x4c]
sub edx, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x40f2aa
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jmp 0x40f254
call sub.cygwin1.dll___stack_chk_fail
nop
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp], 0x18
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x40]
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x1c], edx
call sub.cygwin1.dll___wrap__Znwj
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], edi
mov edx, dword [esp + 0x2c]
sub edx, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x40f322
add ebx, 0xe4
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
add esp, 0x30
pop ebx
pop esi
pop edi
jmp fcn.00451078
call sub.cygwin1.dll___stack_chk_fail
nop
lea esi, [esi]
nop
push edi
push esi
push ebx
sub esp, 0x10
mov edx, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0xc], edx
xor edx, edx
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edi, dword [eax + 0xe4]
lea ecx, [eax + 0xe4]
cmp edi, ecx
je 0x40f3b0
mov eax, edi
mov eax, dword [eax]
add edx, 1
cmp ecx, eax
jne 0x40f360
cmp edx, 1
jbe 0x40f3b0
mov eax, dword [edi]
mov ecx, 0
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
add eax, 0x32
adc edx, 0
cmp esi, eax
sbb ebx, edx
jb 0x40f3a0
mov eax, dword [esp + 0xc]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x40f3b7
add esp, 0x10
mov eax, ecx
pop ebx
pop esi
pop edi
ret
mov ecx, eax
sub ecx, esi
jmp 0x40f387
mov ecx, 0x7fffffff
jmp 0x40f387
call sub.cygwin1.dll___stack_chk_fail
lea esi, [esi]
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x4c], eax
xor eax, eax
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov ecx, dword [edi + 0x40]
mov ebp, dword [esi + 0x40]
mov eax, dword [edi + 0x3c]
mov ebx, dword [esi + 0x3c]
cmp ecx, ebp
mov dword [esp + 0x3c], ecx
setne dl
cmp eax, ebx
mov dword [esp + 0x34], eax
setne al
or dl, al
mov byte [esp + 0x3b], dl
jne 0x40f57a
mov dword [esp + 0x2c], 0
test ecx, ecx
jle 0x40f518
lea esi, [esi]
mov eax, dword [esp + 0x2c]
xor ebx, ebx
shl eax, 3
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
test eax, eax
jg 0x40f445
jmp 0x40f505
add ebx, 1
cmp dword [esp + 0x34], ebx
je 0x40f505
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
sub eax, edx
sar eax, 3
cmp dword [esp + 0x2c], eax
jae 0x40f5c0
mov eax, dword [esp + 0x30]
mov eax, dword [edx + eax]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
imul eax, eax, 0xaaaaaaab
cmp ebx, eax
jae 0x40f5ac
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea ecx, [ebx + ebx*2]
shl ecx, 2
sub eax, ebp
add edx, ecx
sar eax, 3
cmp dword [esp + 0x2c], eax
jae 0x40f5c0
mov eax, dword [esp + 0x30]
mov eax, dword [ebp + eax]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
sub eax, ebp
sar eax, 2
imul eax, eax, 0xaaaaaaab
cmp ebx, eax
jae 0x40f5ac
add ebp, ecx
mov dword [esp], edx
mov dword [esp + 4], ebp
call fcn.00419af0
mov ebp, eax
test al, al
je 0x40f438
call sub.cygwin1.dll___getreent
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
add ebx, 1
mov dword [esp + 4], str.Cell___d___d__differs._n
mov dword [esp + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, ebp
mov byte [esp + 0x3b], al
cmp dword [esp + 0x34], ebx
jne 0x40f445
add dword [esp + 0x2c], 1
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x3c], eax
jne 0x40f418
mov ebx, dword [edi + 0x48]
mov edx, dword [esi + 0x48]
mov edi, dword [edi + 0x44]
mov ebp, dword [esi + 0x44]
cmp ebx, edx
jne 0x40f52c
cmp ebp, edi
je 0x40f561
mov dword [esp + 0x2c], edx
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cursor_mismatch:___d___d__vs.___d___d_._n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov byte [esp + 0x3b], 1
mov eax, dword [esp + 0x4c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x40f5d8
movzx eax, byte [esp + 0x3b]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___getreent
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str.Framebuffer_size___dx_d___dx_d__differs._n
mov dword [esp + 8], esi
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x40f561
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x4784b4
call fcn.00450fe0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], 0x4784b4
mov dword [esp + 4], eax
call fcn.00450fe0
call sub.cygwin1.dll___stack_chk_fail
nop
nop