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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [esp + 0x60], 0x36
ja 0x65c120
imul eax, dword [esp + 0x60], 0x84
mov ecx, dword [eax + 0x8db180]
test ecx, ecx
je 0x65c120
mov edi, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov eax, dword [eax + 0x8db184]
mov edx, dword [edi]
test edx, edx
je 0x65c1c0
imul ebx, dword [esp + 0x60], 0x84
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
add ebx, 0x8db180
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0066a430
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov eax, dword [eax]
test eax, eax
je 0x65c120
mov ebp, dword [sym.imp.libpcaewin.dll_M_YPOS]
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0066a3d0
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0066a390
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ebx + 0x68]
mov edx, esi
sub edx, ecx
test edi, edi
je 0x65bfc8
sub edx, 0x19
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0xc]
imul eax, dword [ebx + 0x20]
mov edi, dword [esp + 0x28]
add eax, esi
mov esi, dword [sym.imp.libpcaewin.dll_M_XPOS]
sub eax, ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esi]
add ecx, eax
sub ecx, edi
cmp ecx, esi
jg 0x65c120
add eax, dword [ebx + 0x1c]
sub eax, edi
cmp esi, eax
jg 0x65c120
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp]
add edx, eax
cmp edx, ecx
jg 0x65c120
mov edi, dword [esp + 0x1c]
add eax, edi
cmp ecx, eax
jg 0x65c120
mov esi, dword [sym.imp.libpcaewin.dll_LAST_SHEET_EDIT_KEY]
mov eax, dword [ebx + 4]
mov dword [esi], 0
mov dword [esp], eax
call fcn.00667e50
test eax, eax
je 0x65c1e0
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x65c055
mov edi, dword [ebx + 0x5c]
test edi, edi
jne 0x65c26d
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x65c067
mov edi, dword [ebx + 0x60]
test edi, edi
jne 0x65c2d7
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x65c079
mov edi, dword [ebx + 0x24]
test edi, edi
jne 0x65c349
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x65c08b
mov edx, dword [ebx + 0x70]
test edx, edx
jne 0x65c210
mov eax, dword [esi]
mov dword [esi], 0
cmp eax, 0x148
je 0x65c130
cmp eax, 0x150
jne 0x65c205
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebp]
mov dword [eax], 1
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x24]
add ecx, edx
sub eax, edx
mov dword [ebp], ecx
add eax, 0xa
cmp ecx, eax
jle 0x65bf7c
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x38], 0
mov dword [esp], eax
call fcn.0066a290
mov eax, dword [ebp]
sub eax, dword [esp + 0x3c]
mov dword [ebp], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00667a80
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov eax, dword [eax]
test eax, eax
jne 0x65bf7c
nop
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
imul esi, dword [esp + 0x60], 0x84
mov edi, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov eax, dword [ebp]
mov dword [edi], 1
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0x8db1a0]
add esi, 0x8db180
lea edx, [edi + 9]
sub eax, ecx
mov dword [ebp], eax
cmp eax, edx
jg 0x65bf7c
mov edx, dword [esp + 0x2c]
test edx, edx
jle 0x65bf7c
lea eax, [esp + 0x3c]
neg ecx
mov dword [esp + 0x38], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call fcn.0066a290
mov eax, dword [ebp]
sub eax, dword [esp + 0x3c]
mov dword [ebp], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00667a80
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov eax, dword [eax]
jmp 0x65c117
mov dword [esp], eax
call fcn.0066a540
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov ebp, dword [eax]
test ebp, ebp
je 0x65c120
jmp 0x65bf3e
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov ebx, dword [sym.imp.libpcaewin.dll_Get_Mouse_Event]
mov esi, dword [eax]
test esi, esi
je 0x65c205
lea esi, [esi]
call ebx
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov eax, dword [eax]
test eax, eax
jne 0x65c1f8
mov eax, 1
jmp 0x65c122
mov eax, dword [edx + 0x34]
mov dword [0x8dcddc], edx
mov dword [0x75dda4], eax
mov eax, dword [edx + 0x38]
mov dword [esp], 0x75dd80
mov dword [0x75ddbc], eax
imul eax, dword [esp + 0x60], 0x84
add eax, 0x8db180
mov dword [0x8db164], eax
call dword [sym.imp.libpcaewin.dll_Menue_Manager]
mov eax, dword [ebx + 4]
mov dword [ebx + 0x70], 0
mov dword [0x8db164], 0
mov dword [esp], eax
mov dword [0x8dcddc], 0
call fcn.00667a80
jmp 0x65c205
cmp edi, dword [ebx + 0x78]
je 0x65c3cb
mov eax, dword [edi + 4]
cmp edi, dword [ebx + 0x7c]
je 0x65c3f7
test eax, eax
je 0x65c28c
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
mov edx, dword [edi + 8]
test edx, edx
je 0x65c296
mov dword [edx + 4], eax
imul eax, dword [esp + 0x60], 0x84
sub dword [eax + 0x8db18c], 1
mov eax, dword [edi]
test eax, eax
je 0x65c2b3
mov dword [esp], eax
call fcn.00719704
mov dword [esp], edi
call fcn.00719704
imul eax, dword [esp + 0x60], 0x84
mov dword [eax + 0x8db1dc], 0
mov eax, 2
jmp 0x65c122
mov dword [esp], 0xc
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x74edb8
mov ebp, dword [ebx + 0x10]
mov dword [esp], ebp
call sub.msvcrt.dll_malloc
mov dword [esi], eax
test eax, eax
je 0x74edb0
mov edx, dword [edi + 8]
mov dword [esi + 4], edi
mov dword [esi + 8], edx
mov dword [edi + 8], esi
test edx, edx
je 0x65c40a
mov dword [edx + 4], esi
imul edx, dword [esp + 0x60], 0x84
add dword [edx + 0x8db18c], 1
lea ebx, [edx + 0x8db180]
mov edx, dword [edi]
mov dword [esp + 8], ebp
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [ebx + 0x60], 0
jmp 0x65c2cd
mov edi, dword [ebx + 0x7c]
mov dword [esp], 0xc
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x74edc7
mov ebp, dword [ebx + 0x10]
mov dword [esp], ebp
call sub.msvcrt.dll_malloc
mov dword [esi], eax
test eax, eax
je 0x74edbf
test edi, edi
je 0x65c3e1
mov edx, dword [edi + 8]
mov dword [esi + 4], edi
mov dword [esi + 8], edx
mov dword [edi + 8], esi
test edx, edx
je 0x65c412
mov dword [edx + 4], esi
imul edx, dword [esp + 0x60], 0x84
add dword [edx + 0x8db18c], 1
lea ebx, [edx + 0x8db180]
mov edx, dword [edx + 0x8db1f4]
mov edx, dword [edx]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov dword [ebx + 0x24], 0
jmp 0x65c2cd
mov eax, dword [edi + 8]
mov dword [ebx + 0x78], eax
test eax, eax
je 0x65c41a
mov dword [eax + 4], 0
jmp 0x65c296
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], esi
jmp 0x65c392
mov dword [ebx + 0x7c], eax
test eax, eax
je 0x65c426
mov dword [eax + 8], 0
jmp 0x65c296
mov dword [ebx + 0x7c], esi
jmp 0x65c319
mov dword [ebx + 0x7c], esi
jmp 0x65c392
mov dword [ebx + 0x7c], 0
jmp 0x65c296
imul eax, dword [esp + 0x60], 0x84
xor edx, edx
mov dword [eax + 0x8db1f8], edx
jmp 0x65c296
mov dword [esp], esi
call fcn.00719704
mov eax, dword [pe_dos_header]
ud2
mov dword [esp], esi
call fcn.00719704
mov eax, dword [pe_dos_header]
ud2