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

Disassembly:
sub esp, 0x228
mov eax, dword [0x484004]
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 0x478d00
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x478520
lea eax, [esp + 0x14]
push 0x478d00
push eax
call fcn.0043d179
add esp, 0xc
test eax, eax
je 0x40f0e7
mov dword [esp + 0x10], 0
mov edx, dword [0x488ae4]
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 0x40f128
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 0x40f110
mov eax, dword [0x488ae4]
test eax, eax
je 0x40f143
push 3
push eax
call ebp
mov edx, dword [0x488ae4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x54], 0
je 0x40f14f
xor edi, edi
movzx ecx, word [0x488a58]
mov edx, dword [esp + 0x10]
push ecx
push edi
push str._2d_langUI_d_n
push edx
call fcn.0043d35d
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.0043d35d
add esp, 0x28
test edi, edi
jle 0x40f3ed
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 + reloc.GDI32.dll_PolylineTo]
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.0043d35d
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.0043d35d
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 0x40f236
push 0
sub eax, ecx
push 0
sar eax, 1
add eax, 1
push eax
push 0x489f10
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 0x40f270
sub eax, ecx
sar eax, 1
push 0x489f10
mov byte [eax + 0x489f10], dl
mov edx, dword [esp + 0x14]
push str.TitleW_s_n
push edx
call fcn.0043c301
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.0043d35d
mov ecx, dword [esp + 0x30]
push str.Colors
push ecx
call fcn.0043d35d
add esp, 0x28
xor ebp, ebp
test ebx, ebx
jle 0x40f315
jmp 0x40f2f0
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.0043d35d
add ebp, 1
add esp, 0xc
cmp ebp, ebx
jl 0x40f2f0
mov edx, dword [esp + 0x10]
push 0x478f38
push edx
call fcn.0043d35d
mov eax, dword [esp + 0x18]
push 0x478f3c
push eax
call fcn.0043d35d
add esp, 0x10
mov ebp, 0x10971f8
jmp 0x40f340
mov ecx, dword [edi + 4]
mov edx, dword [ecx + ebp]
mov eax, dword [esp + 0x10]
push edx
push 0x478f50
push eax
call fcn.0043d35d
add ebp, 4
add esp, 0xc
cmp ebp, 0x10975f8
jl 0x40f340
mov ecx, dword [esp + 0x10]
push 0x478f38
push ecx
call fcn.0043d35d
mov edx, dword [esp + 0x18]
push str.Widths
push edx
call fcn.0043d35d
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 0x478f50
push edx
call fcn.0043d35d
add ebp, 4
add esp, 0xc
cmp ebp, 0x84d90
jl 0x40f390
mov eax, dword [esp + 0x10]
push 0x478f38
push eax
call fcn.0043d35d
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.0043d35d
add esp, 0x14
add esi, 4
sub dword [esp + 0x18], 1
jne 0x40f1a0
mov ecx, dword [esp + 0x10]
push str._HistoryBegin_n
push ecx
call fcn.0043d35d
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 0x40f420
lea esi, [ebx + 0x100]
mov eax, esi
lea edx, [eax + 2]
jmp 0x40f430
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f430
sub eax, edx
sar eax, 1
je 0x40f717
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 0x40f450
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x489f10
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 0x40f480
sub eax, edx
mov edx, dword [esp + 0x10]
push 0x489f10
sar eax, 1
push 0x478fa4
push edx
mov byte [eax + 0x489f10], cl
call fcn.0043c301
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f4b1
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x489f10
push 0xffffffffffffffff
push ebx
push 0
push 0
call ebp
mov eax, ebx
lea edx, [eax + 2]
jmp 0x40f4e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f4e0
sub eax, edx
sar eax, 1
push 0x489f10
mov byte [eax + 0x489f10], cl
mov eax, dword [esp + 0x14]
push 0x478fa4
push eax
call fcn.0043c301
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 0x40f514
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x489f10
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 0x40f540
sub eax, edx
sar eax, 1
push 0x489f10
mov byte [eax + 0x489f10], cl
mov ecx, dword [esp + 0x14]
push 0x478fa4
push ecx
call fcn.0043c301
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 0x40f577
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x489f10
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 0x40f5a1
sub eax, edx
mov edx, dword [esp + 0x10]
push 0x489f10
sar eax, 1
push 0x478fa4
push edx
mov byte [eax + 0x489f10], cl
call fcn.0043c301
lea edi, [ebx + 0xc0]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x40f5e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f5e0
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x489f10
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 0x40f610
sub eax, edx
sar eax, 1
push 0x489f10
mov byte [eax + 0x489f10], cl
mov eax, dword [esp + 0x14]
push 0x478fa4
push eax
call fcn.0043c301
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f641
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x489f10
push 0xffffffffffffffff
push esi
push 0
push 0
call ebp
mov eax, esi
lea edx, [eax + 2]
jmp 0x40f670
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f670
sub eax, edx
sar eax, 1
push 0x489f10
mov byte [eax + 0x489f10], cl
mov ecx, dword [esp + 0x14]
push 0x478fa4
push ecx
call fcn.0043c301
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 0x40f6a7
push 0
sub eax, edx
push 0
sar eax, 1
add eax, 1
push eax
push 0x489f10
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 0x40f6d1
sub eax, ecx
sar eax, 1
push 0x489f10
mov byte [eax + 0x489f10], dl
mov edx, dword [esp + 0x14]
push str._s__n
push edx
call fcn.0043c301
mov eax, dword [esp + 0x24]
add eax, 1
add esp, 0xc
add ebx, 0x584
cmp eax, 0xc
mov dword [esp + 0x18], eax
jl 0x40f420
mov eax, dword [esp + 0x10]
push str._HistoryEnd_n
push eax
call fcn.0043d35d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043c6cc
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 0x4494]
add esp, 0xc
test edi, edi
jle 0x40f758
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 0x40f747
push 0x200
lea eax, [esi + 0x60]
push 0
push eax
call fcn.0043e850
add esp, 0xc
mov dword [esi + 0x4494], 0
call fcn.0040f7a0
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b563
add esp, 0x228
ret 4