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

Disassembly:
sub esp, 0x228
mov eax, dword [0x44aad4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x4494]
push str.LookALF.bak
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.LookALF.bak
push 0x442d40
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x44255c
lea eax, [esp + 0x14]
push 0x442d40
push eax
call fcn.004251bd
add esp, 0xc
test eax, eax
je 0x40e677
mov dword [esp + 0x10], 0
mov edx, dword [0x44f420]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
test edi, edi
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
jle 0x40e6b8
mov esi, dword [esp + 0x14]
add esi, 0x60
mov ebx, edi
lea esp, [esp]
mov eax, dword [esi]
push 9
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
add esi, 4
sub ebx, 1
jne 0x40e6a0
mov eax, dword [0x44f420]
test eax, eax
je 0x40e6d3
push 3
push eax
call ebp
mov edx, dword [0x44f420]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x54], 0
je 0x40e6df
xor edi, edi
movzx ecx, word [0x44f39c]
mov edx, dword [esp + 0x10]
push ecx
push edi
push str._2d_langUI_d_n
push edx
call fcn.00425229
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push str.MainWindow_4d__4d__4d__4d_n
push ecx
call fcn.00425229
add esp, 0x28
test edi, edi
jle 0x40e97d
mov esi, dword [esp + 0x14]
add esi, 0x60
mov dword [esp + 0x18], edi
mov edx, dword [esi]
push 0xffffffffffffffeb
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
mov eax, dword [edi + 4]
mov ebx, dword [eax + 0x82908]
push 0
push 0xf120
mov dword [esp + 0x24], eax
mov eax, dword [esi]
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi]
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
mov ecx, dword [esp + 0x18]
push edx
push eax
push str.Window_4d__4d__4d__4d_n
push ecx
call fcn.00425229
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x1097604]
mov ecx, dword [esp + 0x28]
push eax
push str.ScaleChan_d_n
push ecx
call fcn.00425229
mov eax, dword [esi]
add esp, 0x24
push 0xff
lea edx, [esp + 0x34]
push edx
push eax
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 0x40e7c6
push 0
sub eax, ecx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x30]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e800
sub eax, ecx
sar eax, 1
push 0x450848
mov byte [eax + 0x450848], dl
mov edx, dword [esp + 0x14]
push str.TitleW_s_n
push edx
call fcn.0042451a
mov eax, dword [edi + 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]
mov eax, dword [esp + 0x20]
fstp qword [esp]
push ecx
push edx
push str.Scales_d__d__.0lf__.0lf_n
push eax
call fcn.00425229
mov ecx, dword [esp + 0x30]
push str.Colors
push ecx
call fcn.00425229
add esp, 0x28
xor ebp, ebp
test ebx, ebx
jle 0x40e8a5
jmp 0x40e880
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebp*4 + 0x84590]
mov ecx, dword [esp + 0x10]
push eax
push str._06x
push ecx
call fcn.00425229
add ebp, 1
add esp, 0xc
cmp ebp, ebx
jl 0x40e880
mov edx, dword [esp + 0x10]
push 0x442f00
push edx
call fcn.00425229
mov eax, dword [esp + 0x18]
push 0x442f04
push eax
call fcn.00425229
add esp, 0x10
mov ebp, 0x10971f8
jmp 0x40e8d0
mov ecx, dword [edi + 4]
mov edx, dword [ecx + ebp]
mov eax, dword [esp + 0x10]
push edx
push 0x442f18
push eax
call fcn.00425229
add ebp, 4
add esp, 0xc
cmp ebp, 0x10975f8
jl 0x40e8d0
mov ecx, dword [esp + 0x10]
push 0x442f00
push ecx
call fcn.00425229
mov edx, dword [esp + 0x18]
push str.Widths
push edx
call fcn.00425229
add esp, 0x10
mov ebp, 0x84990
lea ebx, [ebx]
mov eax, dword [edi + 4]
mov ecx, dword [eax + ebp]
mov edx, dword [esp + 0x10]
push ecx
push 0x442f18
push edx
call fcn.00425229
add ebp, 4
add esp, 0xc
cmp ebp, 0x84d90
jl 0x40e920
mov eax, dword [esp + 0x10]
push 0x442f00
push eax
call fcn.00425229
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x1097600]
mov eax, dword [esp + 0x18]
push edx
push str.TimeScale_d_n
push eax
call fcn.00425229
add esp, 0x14
add esi, 4
sub dword [esp + 0x18], 1
jne 0x40e730
mov ecx, dword [esp + 0x10]
push str._HistoryBegin_n
push ecx
call fcn.00425229
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 8
mov dword [esp + 0x18], 0
add ebx, 0x2a0
jmp 0x40e9b0
lea esi, [ebx + 0x100]
mov eax, esi
lea edx, [eax + 2]
jmp 0x40e9c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e9c0
sub eax, edx
sar eax, 1
je 0x40eca7
lea edi, [ebx - 0x40]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e9e0
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ea10
sub eax, edx
mov edx, dword [esp + 0x10]
push 0x450848
sar eax, 1
push 0x442f6c
push edx
mov byte [eax + 0x450848], cl
call fcn.0042451a
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ea41
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push ebx
push 0
push 0
call ebp
mov eax, ebx
lea edx, [eax + 2]
jmp 0x40ea70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ea70
sub eax, edx
sar eax, 1
push 0x450848
mov byte [eax + 0x450848], cl
mov eax, dword [esp + 0x14]
push 0x442f6c
push eax
call fcn.0042451a
lea edi, [ebx + 0x40]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eaa4
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ead0
sub eax, edx
sar eax, 1
push 0x450848
mov byte [eax + 0x450848], cl
mov ecx, dword [esp + 0x14]
push 0x442f6c
push ecx
call fcn.0042451a
lea edi, [ebx + 0x80]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eb07
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eb31
sub eax, edx
mov edx, dword [esp + 0x10]
push 0x450848
sar eax, 1
push 0x442f6c
push edx
mov byte [eax + 0x450848], cl
call fcn.0042451a
lea edi, [ebx + 0xc0]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x40eb70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eb70
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eba0
sub eax, edx
sar eax, 1
push 0x450848
mov byte [eax + 0x450848], cl
mov eax, dword [esp + 0x14]
push 0x442f6c
push eax
call fcn.0042451a
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ebd1
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 ebp
mov eax, esi
lea edx, [eax + 2]
jmp 0x40ec00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ec00
sub eax, edx
sar eax, 1
push 0x450848
mov byte [eax + 0x450848], cl
mov ecx, dword [esp + 0x14]
push 0x442f6c
push ecx
call fcn.0042451a
lea edi, [ebx + 0x500]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ec37
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x450848
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40ec61
sub eax, ecx
sar eax, 1
push 0x450848
mov byte [eax + 0x450848], dl
mov edx, dword [esp + 0x14]
push str._s__n
push edx
call fcn.0042451a
mov eax, dword [esp + 0x24]
add eax, 1
add esp, 0xc
add ebx, 0x584
cmp eax, 0xc
mov dword [esp + 0x18], eax
jl 0x40e9b0
mov eax, dword [esp + 0x10]
push str._HistoryEnd_n
push eax
call fcn.00425229
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042480a
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 0x4494]
add esp, 0xc
test edi, edi
jle 0x40ece8
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x60]
push 0
push 0
push 0x10
push edx
call ebx
sub edi, 1
jne 0x40ecd7
push 0x200
lea eax, [esi + 0x60]
push 0
push eax
call fcn.004263e0
add esp, 0xc
mov dword [esi + 0x4494], 0
call fcn.0040ed30
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423cab
add esp, 0x228
ret 4