Function at 0x465450
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4be7
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00465190
mov eax, dword [esi + 0x318]
cmp eax, 1
jne 0x4654e4
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x465852
xorps xmm0, xmm0
mov dword [ebp - 0x440], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x43c], eax
movups xmmword [ebp - 0x450], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x465470
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00442860
push str._thprac
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0
call fcn.004690f0
push str._thprac.json
lea ecx, [ebp - 0x450]
call fcn.004690f0
cmp dword [ebp - 0x43c], 7
lea eax, [ebp - 0x450]
cmova eax, dword [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x450]
call fcn.004443f0
jmp 0x465852
cmp eax, 2
jne 0x465852
mov eax, dword [esi + 0x31c]
cmp eax, dword [0x68507c]
je 0x465808
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.004606f0
push str._thprac
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 1
call fcn.004690f0
push 0
lea ecx, [ebp - 0x450]
call fcn.004695e0
push 0
lea ecx, [ebp - 0x450]
call fcn.004695e0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x468]
call fcn.004606f0
push eax
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 2
push eax
call fcn.005439d0
add esp, 8
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 4
call fcn.004443f0
cmp dword [0x68507c], 0
lea eax, [ebp - 0x480]
push str..thprac_data
push eax
lea eax, [ebp - 0x438]
push eax
jne 0x4656d4
call fcn.0045dab0
add esp, 0xc
push 0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 5
call fcn.004695e0
push 0
lea ecx, [ebp - 0x438]
call fcn.004695e0
mov eax, dword [esi + 0x320]
cmp eax, 1
je 0x46567a
cmp eax, 2
je 0x46567a
mov eax, dword [esi + 0x324]
cmp eax, 1
jne 0x465650
push str..thprac_data_backup
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.0045dab0
add esp, 0xc
lea ecx, [ebp - 0x438]
cmp dword [ebp - 0x424], 7
lea eax, [ebp - 0x468]
cmova ecx, dword [ebp - 0x438]
cmp dword [ebp - 0x454], 7
cmova eax, dword [ebp - 0x468]
jmp 0x465747
test eax, eax
jne 0x4657e0
cmp dword [ebp - 0x424], 7
lea eax, [ebp - 0x438]
push 0
cmova eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4657e0
cmp dword [ebp - 0x424], 7
lea eax, [ebp - 0x438]
push 0
cmova eax, dword [ebp - 0x438]
mov ecx, esi
push eax
push 3
call fcn.004626f0
cmp dword [ebp - 0x424], 7
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
cmova edx, dword [ebp - 0x438]
cmp dword [ebp - 0x43c], 7
cmova ecx, dword [ebp - 0x450]
xor eax, eax
cmp dword [esi + 0x320], 1
setne al
inc eax
jmp 0x4657d3
call fcn.0045dab0
add esp, 0xc
push 0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 6
call fcn.004695e0
push 0
lea ecx, [ebp - 0x438]
call fcn.004695e0
mov eax, dword [esi + 0x324]
test eax, eax
jne 0x46575f
push str..thprac_data_backup
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.0045dab0
add esp, 0xc
lea ecx, [ebp - 0x468]
cmp dword [ebp - 0x454], 7
lea eax, [ebp - 0x438]
cmova ecx, dword [ebp - 0x468]
cmp dword [ebp - 0x424], 7
cmova eax, dword [ebp - 0x438]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x468]
call fcn.004443f0
jmp 0x4657e0
cmp eax, 1
je 0x46576b
cmp eax, 2
jne 0x4657e0
jmp 0x46578b
cmp dword [ebp - 0x43c], 7
lea eax, [ebp - 0x450]
push 0
cmova eax, dword [ebp - 0x450]
mov ecx, esi
push eax
push 3
call fcn.004626f0
cmp dword [esi + 0x324], 1
jne 0x4657aa
cmp dword [ebp - 0x43c], 7
lea edx, [ebp - 0x450]
cmova edx, dword [ebp - 0x450]
jmp 0x4657ac
xor edx, edx
cmp dword [ebp - 0x424], 7
lea ecx, [ebp - 0x438]
cmova ecx, dword [ebp - 0x438]
xor eax, eax
cmp dword [esi + 0x324], 1
setne al
lea eax, [eax*2 + 1]
push edx
push ecx
movzx eax, ax
mov ecx, esi
push eax
call fcn.004626f0
lea ecx, [ebp - 0x438]
call fcn.004443f0
lea ecx, [ebp - 0x480]
call fcn.004443f0
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.004443f0
push 0
call fcn.00465270
add esp, 4
test al, al
je 0x465852
cmp byte [esi + 0x328], 0
je 0x46582c
cmp dword [0x68507c], 0
je 0x46582c
mov al, 1
jmp 0x46582e
xor al, al
mov byte [ebp - 0x481], al
lea eax, [ebp - 0x481]
push eax
push str.use_relative_path
call fcn.00466620
add esp, 8
call fcn.004718d0
call fcn.00465190
mov dword [esi + 0x318], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret