Function at 0x40e1a0
Capabilities:
Delete file
Get graphical window text
Move file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x44aad4]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, dword [ebx + 0x4494]
push str.LookALF.bak
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.LookALF.bak
push 0x442ce0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x44257c
push 0x442ce0
call fcn.00424a8a
mov ecx, dword [0x44f420]
add esp, 8
mov edi, eax
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebp, ebp
jle 0x40e22e
lea esi, [ebx + 0x60]
mov dword [esp + 0x14], ebp
mov edx, dword [esi]
push 9
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
add esi, 4
sub dword [esp + 0x14], 1
jne 0x40e210
mov eax, dword [0x44f420]
test eax, eax
je 0x40e24d
push 3
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x44f420]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebx + 0x54], 0
je 0x40e255
xor ebp, ebp
movzx edx, word [0x44f39c]
push edx
push ebp
push str._2d_langUI_d_n
push edi
call fcn.00424930
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push str.MainWindow_4d__4d__4d__4d_n
push edi
call fcn.00424930
add esp, 0x28
test ebp, ebp
jle 0x40e4a1
add ebx, 0x60
mov dword [esp + 0x10], ebp
lea ebx, [ebx]
mov ecx, dword [ebx]
push 0xffffffffffffffeb
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, eax
mov eax, dword [ebp + 4]
mov edx, dword [eax + 0x82908]
push 0
push 0xf120
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
push 0x112
push eax
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push str.Window_4d__4d__4d__4d_n
push edi
call fcn.00424930
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x1097604]
push edx
push str.ScaleChan_d_n
push edi
call fcn.00424930
mov ecx, dword [ebx]
add esp, 0x24
push 0xff
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x30]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e332
push 0
sub eax, ecx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x30]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e366
push 0x450848
sub eax, ecx
sar eax, 1
push str.TitleW_s_n
push edi
mov byte [eax + 0x450848], dl
call fcn.00423e65
mov eax, dword [ebp + 4]
fld qword [eax + 0x84588]
mov edx, dword [eax + 0x83558]
push ecx
mov ecx, dword [eax + 0x83564]
fstp qword [esp + 8]
fld qword [eax + 0x83578]
fstp qword [esp]
push ecx
push edx
push str.Scales_d__d__.0lf__.0lf_n
push edi
call fcn.00424930
push str.Colors
push edi
call fcn.00424930
xor esi, esi
add esp, 0x28
cmp dword [esp + 0x14], esi
jle 0x40e3f4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4 + 0x84590]
push ecx
push str._06x
push edi
call fcn.00424930
add esi, 1
add esp, 0xc
cmp esi, dword [esp + 0x14]
jl 0x40e3d1
push 0x442ea0
push edi
call fcn.00424930
push 0x442ea4
push edi
call fcn.00424930
add esp, 0x10
mov esi, 0x10971f8
mov edx, dword [ebp + 4]
mov eax, dword [esi + edx]
push eax
push 0x442eb8
push edi
call fcn.00424930
add esi, 4
add esp, 0xc
cmp esi, 0x10975f8
jl 0x40e412
push 0x442ea0
push edi
call fcn.00424930
push str.Widths
push edi
call fcn.00424930
add esp, 0x10
mov esi, 0x84990
mov ecx, dword [ebp + 4]
mov edx, dword [esi + ecx]
push edx
push 0x442eb8
push edi
call fcn.00424930
add esi, 4
add esp, 0xc
cmp esi, 0x84d90
jl 0x40e450
push 0x442ea0
push edi
call fcn.00424930
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x1097600]
push ecx
push str.TimeScale_d_n
push edi
call fcn.00424930
add esp, 0x14
add ebx, 4
sub dword [esp + 0x10], 1
jne 0x40e2a0
push str._HistoryBegin_n
push edi
call fcn.00424930
mov ebp, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x10], 0
add ebp, 0x2a0
lea eax, [ebp + 0x100]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e4d0
sub eax, edx
sar eax, 1
je 0x40e7a2
lea esi, [ebp - 0x40]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e4f0
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e520
push 0x450848
sub eax, edx
sar eax, 1
push 0x442f0c
push edi
mov byte [eax + 0x450848], cl
call fcn.00423e65
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e550
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push ebp
push 0
push 0
call ebx
mov eax, ebp
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e580
push 0x450848
sub eax, ecx
sar eax, 1
push 0x442f0c
push edi
mov byte [eax + 0x450848], dl
call fcn.00423e65
lea esi, [ebp + 0x40]
mov eax, esi
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e5b0
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
sub eax, ecx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e5e0
push 0x450848
sub eax, ecx
sar eax, 1
push 0x442f0c
push edi
mov byte [eax + 0x450848], dl
call fcn.00423e65
lea esi, [ebp + 0x80]
mov eax, esi
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e613
push 0
sub eax, ecx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov eax, esi
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e640
push 0x450848
sub eax, ecx
sar eax, 1
push 0x442f0c
push edi
mov byte [eax + 0x450848], dl
call fcn.00423e65
lea esi, [ebp + 0xc0]
mov eax, esi
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e673
push 0
sub eax, ecx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6a0
push 0x450848
sub eax, edx
sar eax, 1
push 0x442f0c
push edi
mov byte [eax + 0x450848], cl
call fcn.00423e65
lea eax, [ebp + 0x100]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6d1
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
lea esi, [ebp + 0x100]
push esi
push 0
push 0
call ebx
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e701
push 0x450848
sub eax, ecx
sar eax, 1
push 0x442f0c
push edi
mov byte [eax + 0x450848], dl
call fcn.00423e65
lea esi, [ebp + 0x500]
mov eax, esi
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e734
push 0
sub eax, ecx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov eax, esi
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e760
push 0x450848
sub eax, ecx
sar eax, 1
push str._s__n
push edi
mov byte [eax + 0x450848], dl
call fcn.00423e65
mov eax, dword [esp + 0x1c]
add eax, 1
add esp, 0xc
add ebp, 0x584
cmp eax, 0xc
mov dword [esp + 0x10], eax
jl 0x40e4c1
push str._HistoryEnd_n
push edi
call fcn.00424930
push edi
call fcn.0042406c
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx + 0x4494]
add esp, 0xc
test esi, esi
jle 0x40e7e1
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [ebx]
mov edx, dword [ebx + 0x60]
push 0
push 0
push 0x10
push edx
call edi
sub esi, 1
jne 0x40e7d0
push 0x200
mov esi, ebx
lea eax, [esi + 0x60]
push 0
push eax
call fcn.00425d60
add esp, 0xc
mov dword [esi + 0x4494], 0
call fcn.0040e820
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042374b
add esp, 0x22c
ret