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

Disassembly:
sub esp, 0x228
mov eax, dword [0x487004]
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 0x47aec0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x47a6dc
lea eax, [esp + 0x14]
push 0x47aec0
push eax
call fcn.0043e0bc
add esp, 0xc
test eax, eax
je 0x40f1f7
mov dword [esp + 0x10], 0
mov edx, dword [0x48bae4]
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 0x40f238
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 0x40f220
mov eax, dword [0x48bae4]
test eax, eax
je 0x40f253
push 3
push eax
call ebp
mov edx, dword [0x48bae4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x54], 0
je 0x40f25f
xor edi, edi
movzx ecx, word [0x48ba58]
mov edx, dword [esp + 0x10]
push ecx
push edi
push str._2d_langUI_d_n
push edx
call fcn.0043e2a0
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.0043e2a0
add esp, 0x28
test edi, edi
jle 0x40f4fd
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.0043e2a0
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.0043e2a0
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 0x40f346
push 0
sub eax, ecx
push 0
sar eax, 1
add eax, 1
push eax
push 0x48cf10
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 0x40f380
sub eax, ecx
sar eax, 1
push 0x48cf10
mov byte [eax + 0x48cf10], dl
mov edx, dword [esp + 0x14]
push str.TitleW_s_n
push edx
call fcn.0043d241
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.0043e2a0
mov ecx, dword [esp + 0x30]
push str.Colors
push ecx
call fcn.0043e2a0
add esp, 0x28
xor ebp, ebp
test ebx, ebx
jle 0x40f425
jmp 0x40f400
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.0043e2a0
add ebp, 1
add esp, 0xc
cmp ebp, ebx
jl 0x40f400
mov edx, dword [esp + 0x10]
push 0x47b0f8
push edx
call fcn.0043e2a0
mov eax, dword [esp + 0x18]
push 0x47b0fc
push eax
call fcn.0043e2a0
add esp, 0x10
mov ebp, 0x10971f8
jmp 0x40f450
mov ecx, dword [edi + 4]
mov edx, dword [ecx + ebp]
mov eax, dword [esp + 0x10]
push edx
push 0x47b110
push eax
call fcn.0043e2a0
add ebp, 4
add esp, 0xc
cmp ebp, 0x10975f8
jl 0x40f450
mov ecx, dword [esp + 0x10]
push 0x47b0f8
push ecx
call fcn.0043e2a0
mov edx, dword [esp + 0x18]
push str.Widths
push edx
call fcn.0043e2a0
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 0x47b110
push edx
call fcn.0043e2a0
add ebp, 4
add esp, 0xc
cmp ebp, 0x84d90
jl 0x40f4a0
mov eax, dword [esp + 0x10]
push 0x47b0f8
push eax
call fcn.0043e2a0
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.0043e2a0
add esp, 0x14
add esi, 4
sub dword [esp + 0x18], 1
jne 0x40f2b0
mov ecx, dword [esp + 0x10]
push str._HistoryBegin_n
push ecx
call fcn.0043e2a0
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 0x40f530
lea esi, [ebx + 0x100]
mov eax, esi
lea edx, [eax + 2]
jmp 0x40f540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f540
sub eax, edx
sar eax, 1
je 0x40f827
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 0x40f560
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x48cf10
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 0x40f590
sub eax, edx
mov edx, dword [esp + 0x10]
push 0x48cf10
sar eax, 1
push 0x47b164
push edx
mov byte [eax + 0x48cf10], cl
call fcn.0043d241
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f5c1
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x48cf10
push 0xffffffffffffffff
push ebx
push 0
push 0
call ebp
mov eax, ebx
lea edx, [eax + 2]
jmp 0x40f5f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f5f0
sub eax, edx
sar eax, 1
push 0x48cf10
mov byte [eax + 0x48cf10], cl
mov eax, dword [esp + 0x14]
push 0x47b164
push eax
call fcn.0043d241
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 0x40f624
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x48cf10
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 0x40f650
sub eax, edx
sar eax, 1
push 0x48cf10
mov byte [eax + 0x48cf10], cl
mov ecx, dword [esp + 0x14]
push 0x47b164
push ecx
call fcn.0043d241
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 0x40f687
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x48cf10
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 0x40f6b1
sub eax, edx
mov edx, dword [esp + 0x10]
push 0x48cf10
sar eax, 1
push 0x47b164
push edx
mov byte [eax + 0x48cf10], cl
call fcn.0043d241
lea edi, [ebx + 0xc0]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x40f6f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f6f0
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x48cf10
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 0x40f720
sub eax, edx
sar eax, 1
push 0x48cf10
mov byte [eax + 0x48cf10], cl
mov eax, dword [esp + 0x14]
push 0x47b164
push eax
call fcn.0043d241
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f751
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x48cf10
push 0xffffffffffffffff
push esi
push 0
push 0
call ebp
mov eax, esi
lea edx, [eax + 2]
jmp 0x40f780
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f780
sub eax, edx
sar eax, 1
push 0x48cf10
mov byte [eax + 0x48cf10], cl
mov ecx, dword [esp + 0x14]
push 0x47b164
push ecx
call fcn.0043d241
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 0x40f7b7
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x48cf10
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 0x40f7e1
sub eax, ecx
sar eax, 1
push 0x48cf10
mov byte [eax + 0x48cf10], dl
mov edx, dword [esp + 0x14]
push str._s__n
push edx
call fcn.0043d241
mov eax, dword [esp + 0x24]
add eax, 1
add esp, 0xc
add ebx, 0x584
cmp eax, 0xc
mov dword [esp + 0x18], eax
jl 0x40f530
mov eax, dword [esp + 0x10]
push str._HistoryEnd_n
push eax
call fcn.0043e2a0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043d60c
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 0x4494]
add esp, 0xc
test edi, edi
jle 0x40f868
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 0x40f857
push 0x200
lea eax, [esi + 0x60]
push 0
push eax
call fcn.0043f810
add esp, 0xc
mov dword [esi + 0x4494], 0
call fcn.0040f8b0
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043c4a7
add esp, 0x228
ret 4