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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x446b0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0x4494]
mov esi, str.LookALF.bak
push esi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov esi, 0x440e70
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x44068c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042154c
add esp, 0xc
test eax, eax
je 0x40c844
and dword [ebp - 0x20c], 0
lea eax, [ebp - 0x22c]
push eax
push dword [0x44b424]
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
jle 0x40c889
mov eax, dword [ebp - 0x214]
lea esi, [edi + 0x60]
mov dword [ebp - 0x210], eax
push 9
push dword [esi]
call ebx
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
add esi, 4
dec dword [ebp - 0x210]
jne 0x40c870
mov eax, dword [0x44b424]
test eax, eax
je 0x40c8a3
push 3
push eax
call ebx
push dword [0x44b424]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [edi + 0x54], 0
je 0x40c8ad
xor ebx, ebx
jmp 0x40c8b3
mov ebx, dword [ebp - 0x214]
movzx eax, word [0x44b3a0]
push eax
push ebx
push str._2d_langUI_d_n
push dword [ebp - 0x20c]
call fcn.004215b8
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push dword [ebp - 0x22c]
push str.MainWindow_4d__4d__4d__4d_n
push dword [ebp - 0x20c]
call fcn.004215b8
add esp, 0x28
test ebx, ebx
jle 0x40cb31
lea esi, [edi + 0x60]
mov dword [ebp - 0x21c], ebx
push 0xffffffffffffffeb
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
mov ebx, eax
mov eax, dword [ebx + 4]
push 0xf120
push 0x112
push dword [esi]
mov dword [ebp - 0x210], eax
mov eax, dword [eax + 0x82908]
mov dword [ebp - 0x214], eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x22c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push dword [ebp - 0x22c]
push str.Window_4d__4d__4d__4d_n
push dword [ebp - 0x20c]
call fcn.004215b8
mov eax, dword [ebx + 4]
push dword [eax + 0x1097604]
push str.ScaleChan_d_n
push dword [ebp - 0x20c]
call fcn.004215b8
add esp, 0x24
push 0xff
lea eax, [ebp - 0x208]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [ebp - 0x208]
call fcn.004147d6
push eax
push str.TitleW_s_n
push dword [ebp - 0x20c]
call fcn.0042053a
mov eax, dword [ebx + 4]
fld qword [eax + 0x84588]
push ecx
fstp qword [esp + 8]
fld qword [eax + 0x83578]
fstp qword [esp]
push dword [eax + 0x83564]
push dword [eax + 0x83558]
push str.Scales_d__d__.0lf__.0lf_n
push dword [ebp - 0x20c]
call fcn.004215b8
push str.Colors
push dword [ebp - 0x20c]
call fcn.004215b8
xor edi, edi
add esp, 0x28
cmp dword [ebp - 0x214], edi
jle 0x40ca39
mov eax, dword [ebp - 0x210]
push dword [eax + edi*4 + 0x84590]
push str._06x
push dword [ebp - 0x20c]
call fcn.004215b8
add esp, 0xc
inc edi
cmp edi, dword [ebp - 0x214]
jl 0x40ca10
mov edi, 0x4410a8
push edi
push dword [ebp - 0x20c]
call fcn.004215b8
push 0x4410ac
push dword [ebp - 0x20c]
call fcn.004215b8
add esp, 0x10
mov dword [ebp - 0x210], 0x10971f8
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x210]
push dword [eax + ecx]
push 0x4410c0
push dword [ebp - 0x20c]
call fcn.004215b8
add dword [ebp - 0x210], 4
add esp, 0xc
cmp dword [ebp - 0x210], 0x10975f8
jl 0x40ca67
push edi
push dword [ebp - 0x20c]
call fcn.004215b8
push str.Widths
push dword [ebp - 0x20c]
call fcn.004215b8
add esp, 0x10
mov dword [ebp - 0x210], 0x84990
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x210]
push dword [ecx + eax]
push 0x4410c0
push dword [ebp - 0x20c]
call fcn.004215b8
add dword [ebp - 0x210], 4
add esp, 0xc
cmp dword [ebp - 0x210], 0x84d90
jl 0x40cac2
push edi
push dword [ebp - 0x20c]
call fcn.004215b8
mov eax, dword [ebx + 4]
push dword [eax + 0x1097600]
push str.TimeScale_d_n
push dword [ebp - 0x20c]
call fcn.004215b8
add esp, 0x14
add esi, 4
dec dword [ebp - 0x21c]
jne 0x40c908
mov edi, dword [ebp - 0x218]
push str._HistoryBegin_n
push dword [ebp - 0x20c]
call fcn.004215b8
and dword [ebp - 0x210], 0
pop ecx
pop ecx
lea esi, [edi + 0x2a0]
mov ebx, 0x441114
lea eax, [esi + 0x100]
push eax
call fcn.00420223
test eax, eax
pop ecx
je 0x40cc31
lea edi, [esi - 0x40]
call fcn.004147d6
push eax
push ebx
push dword [ebp - 0x20c]
call fcn.0042053a
mov edi, esi
call fcn.004147d6
push eax
push ebx
push dword [ebp - 0x20c]
call fcn.0042053a
lea edi, [esi + 0x40]
call fcn.004147d6
push eax
push ebx
push dword [ebp - 0x20c]
call fcn.0042053a
lea edi, [esi + 0x80]
call fcn.004147d6
push eax
push ebx
push dword [ebp - 0x20c]
call fcn.0042053a
lea edi, [esi + 0xc0]
call fcn.004147d6
push eax
push ebx
push dword [ebp - 0x20c]
call fcn.0042053a
lea edi, [esi + 0x100]
call fcn.004147d6
push eax
push ebx
push dword [ebp - 0x20c]
call fcn.0042053a
add esp, 0x48
lea edi, [esi + 0x500]
call fcn.004147d6
push eax
push str._s__n
push dword [ebp - 0x20c]
call fcn.0042053a
mov edi, dword [ebp - 0x218]
add esp, 0xc
inc dword [ebp - 0x210]
add esi, 0x584
cmp dword [ebp - 0x210], 0xc
jl 0x40cb55
push str._HistoryEnd_n
push dword [ebp - 0x20c]
call fcn.004215b8
push dword [ebp - 0x20c]
call fcn.0042082a
add esp, 0xc
mov esi, edi
call fcn.0040c7a6
call fcn.0040cc6a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fba2
leave
ret