Function at 0x5b75c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push esi
push edi
call fcn.005d4920
mov eax, dword [0x761714]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x69724c]
add ecx, 6
mov edx, dword [0x765d60]
imul edx, ecx
mov eax, dword [0x6972a8]
add eax, edx
mov dword [ebp - 0x24], eax
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, dword [0x697250]
mov ecx, dword [0x765d60]
imul ecx, eax
mov edx, dword [0x6972ac]
add edx, ecx
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x7619b8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 8]
sub ecx, 0x3c
push ecx
push 4
mov edx, dword [ebp - 0x24]
push edx
call fcn.005dcad0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
sub eax, 0x3c
push eax
push 4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005dcad0
add esp, 0xc
mov dword [ebp - 0x2c], eax
push 0x20
call dword [sym.imp.USER32.dll_GetSystemMetrics]
shl eax, 1
mov dword [ebp - 0x40], eax
push 0x21
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea edx, [eax + esi*2]
mov dword [ebp - 0x18], edx
movsx eax, word [0x76193c]
test eax, eax
jne 0x5b7864
cmp dword [0x752038], 0
jne 0x5b76a5
call fcn.005b5c00
mov ecx, dword [0x6972b0]
mov dword [ebp - 0x3c], ecx
mov edx, dword [0x6972b4]
mov dword [ebp - 0x14], edx
cmp dword [ebp + 8], 0
je 0x5b77dd
mov word [ebp - 0x50], 0
mov dword [ebp - 0x4c], 1
movsx eax, word [ebp - 0x50]
test eax, eax
jne 0x5b77dd
cmp dword [ebp - 0x4c], 0xa
jge 0x5b77dd
mov ecx, dword [ebp + 8]
fild dword [ecx + 4]
fidiv dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
fimul dword [edx + 0x518]
fstp qword [ebp - 0xa4]
mov eax, dword [ebp + 8]
fild dword [eax + 0x51c]
sub esp, 8
fstp qword [esp]
call fcn.005dcc00
add esp, 8
fdivr qword [ebp - 0xa4]
mov ecx, dword [ebp + 8]
fidiv dword [ecx + 0x520]
fstp qword [ebp - 0xac]
mov edx, dword [ebp + 8]
fild dword [edx + 0x524]
sub esp, 8
fstp qword [esp]
call fcn.005dcc00
add esp, 8
fmul qword [ebp - 0xac]
fst qword [ebp - 0x48]
fcomp qword [0x678e90]
fnstsw ax
test ah, 0x41
jne 0x5b77cf
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cdq
idiv dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
fld qword [ebp - 0x48]
call fcn.00666a00
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x28]
jg 0x5b778e
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x38]
jle 0x5b77a1
mov edx, dword [0x6972b0]
mov dword [ebp - 0x3c], edx
mov eax, dword [0x6972b4]
mov dword [ebp - 0x14], eax
jmp 0x5b77cf
mov word [ebp - 0x50], 1
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x28]
jle 0x5b77bb
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x38]
jle 0x5b77cf
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x5b76ce
call fcn.005debf0
test eax, eax
je 0x5b782d
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [0x752038]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x54ff0000
push 0x6922e8
push str.viewClass
call dword [sym.imp.USER32.dll_CreateMDIWindowA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x5b782b
mov eax, 1
jmp 0x5b7d84
jmp 0x5b7862
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0x54ff0000
push 0x6922e8
call fcn.005b5ca0
add esp, 0x18
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x5b7862
mov eax, 1
jmp 0x5b7d84
jmp 0x5b78d2
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
mov edx, dword [0x761994]
push edx
mov eax, dword [0x7567a4]
push eax
push 0
push 0
push 0x95000000
push 0
push str.viewClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x5b78c3
cmp dword [0x74f5b8], 0
je 0x5b78b9
push str.View_open_failed__n
mov ecx, dword [0x74f5b8]
push ecx
call fcn.00666c30
add esp, 8
mov eax, 1
jmp 0x5b7d84
mov edx, dword [0x751664]
add edx, 1
mov dword [0x751664], edx
mov eax, dword [0x765d60]
cmp eax, dword [0x697240]
jne 0x5b7999
mov ecx, dword [0x697240]
lea edx, [ecx + ecx + 0x14]
mov dword [ebp - 0x54], edx
push str.views
mov eax, dword [ebp - 0x54]
imul eax, eax, 0x28
push eax
call fcn.005ddd80
add esp, 8
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x5b7917
mov eax, 1
jmp 0x5b7d84
mov ecx, dword [ebp - 0x54]
mov dword [0x697240], ecx
mov dword [ebp - 0x30], 0
jmp 0x5b7932
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x54]
jge 0x5b797d
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x765d60]
jge 0x5b7967
mov edx, dword [ebp - 0x30]
imul edx, edx, 0x28
mov esi, dword [0x7617bc]
add esi, edx
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x28
mov edi, dword [ebp - 0x58]
add edi, eax
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
jmp 0x5b797b
mov ecx, 0xa
xor eax, eax
mov edx, dword [ebp - 0x30]
imul edx, edx, 0x28
mov edi, dword [ebp - 0x58]
add edi, edx
rep stosd dword es:[edi], eax
jmp 0x5b7929
push str.views
mov eax, dword [0x7617bc]
push eax
call fcn.005ddfe0
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [0x7617bc], ecx
mov edx, dword [0x765d60]
imul edx, edx, 0x28
mov eax, dword [0x7617bc]
mov ecx, dword [ebp - 0x34]
mov dword [eax + edx], ecx
mov edx, dword [0x765d60]
imul edx, edx, 0x28
mov eax, dword [0x7617bc]
mov dword [eax + edx + 4], 0
mov ecx, dword [0x765d60]
imul ecx, ecx, 0x28
mov edx, dword [0x7617bc]
mov dword [edx + ecx + 0x10], 0
mov eax, dword [0x765d60]
imul eax, eax, 0x28
mov ecx, dword [0x7617bc]
mov word [ecx + eax + 0xa], 0
mov edx, dword [0x765d60]
imul edx, edx, 0x28
mov eax, dword [0x7617bc]
mov word [eax + edx + 0xc], 0
mov ecx, dword [0x765d60]
imul ecx, ecx, 0x28
mov edx, dword [0x7617bc]
mov word [edx + ecx + 0xe], 0
mov eax, dword [0x765d60]
imul eax, eax, 0x28
mov ecx, dword [0x7617bc]
mov word [ecx + eax + 8], 0
mov edx, dword [0x765d60]
add edx, 1
mov dword [0x765d60], edx
push 1
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push 5
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
movsx ecx, word [0x76193c]
test ecx, ecx
jne 0x5b7d82
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [ebp - 0x20], eax
push 0
push 0x1833
push 0x800
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Layers__L_
push 0x269b
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0x1833
push 0x800
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
call dword [sym.imp.USER32.dll_CreateMenu]
mov dword [ebp - 0x5c], eax
push str.View_Control
mov eax, dword [ebp - 0x5c]
push eax
push 0x10
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Zoom_in_10___1_
push 0x2697
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Zoom_in_20___2_
push 0x2698
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Zoom_Out__3_
push 0x2699
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Zoom_Off__4_
push 0x269a
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0x1833
push 0x800
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.1:4__.25__View_Size__Shift_5_
push 0x26a1
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.1:3__.333...__View_Size__Shift_6_
push 0x26a2
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.1:2__.5__View_Size__5_
push 0x2696
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.1:1_View_Size__6_
push 0x1f8
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.2:1_View_Size__7_
push 0x2694
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.3:1_View_Size__8_
push 0x2695
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Full_Screen_View__9_
push 0x1f7
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0x1833
push 0x800
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
call dword [sym.imp.USER32.dll_CreateMenu]
mov dword [ebp - 0x5c], eax
push str.Quick_Ops
mov eax, dword [ebp - 0x5c]
push eax
push 0x10
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Dup___View_Size
push 0x26a3
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Assign_as_Source
push 0x269c
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Assign_as_Brush
push 0x269d
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0x69216c
push 0x269e
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Clone_Image
push 0x269f
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0x692154
push 0x26a0
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Insert_to_Filmstrip
push 0x26ff
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Levels__L_
push 0x26fe
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Windowing__W_
push 0x26fd
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Contrast__Brightness__A_
push 0x26fc
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0x1833
push 0x800
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.width_d_height_d
lea edx, [ebp - 0x9c]
push edx
call fcn.00667e70
add esp, 0x10
lea eax, [ebp - 0x9c]
push eax
push 0x1f9
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
push 0x67d1dc
lea eax, [ebp - 0x9c]
push eax
call fcn.00667e70
add esp, 0xc
lea ecx, [ebp - 0x9c]
push ecx
push 0x1fa
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret