Function at 0x402ba0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x425271
push eax
mov eax, 0x8228
mov dword fs:[0], esp
call fcn.0040bb90
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8248]
push edi
push esi
call fcn.004059a0
mov ecx, dword [0x42f218]
mov edx, dword [0x42f21c]
mov ebx, eax
mov eax, dword [str.Tipray_LdSafe]
mov dword [esp + 0x24], eax
mov ax, word [0x42f220]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x42f8cc]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x2c], edx
mov word [esp + 0x30], ax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x824c]
mov dword [esp + 0x8244], 0
push edx
call fcn.0040ba03
mov ebp, dword [esp + 0x8258]
lea edi, [esp + 0x13c]
add esp, 8
lea edx, [esp + 0x134]
mov ecx, dword [ebp + 0x10c]
mov dword [ebp + 0x110], eax
or ecx, 2
xor eax, eax
mov dword [ebp + 0x10c], ecx
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x402cee
push str..jpg
push ebx
call fcn.0040b5d0
add esp, 8
test eax, eax
je 0x402ce7
push str..gif
push ebx
call fcn.0040b5d0
add esp, 8
test eax, eax
je 0x402ce7
push str..mpg
push ebx
call fcn.0040b5d0
add esp, 8
test eax, eax
je 0x402ce7
push 0x42f1f8
push ebx
call fcn.0040b5d0
add esp, 8
test eax, eax
je 0x402ce7
push str..avi
push ebx
call fcn.0040b5d0
add esp, 8
test eax, eax
je 0x402ce7
push str..wma
push ebx
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x402cee
xor ebx, ebx
jmp 0x402dfb
mov ecx, dword [ebp + 0x10c]
xor eax, eax
or ecx, 1
lea edi, [esp + 0x30]
mov dword [ebp + 0x10c], ecx
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x824c]
lea ecx, [esp + 0x14]
push edx
call fcn.0041d17c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x8248], 1
call fcn.00405830
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
add esp, 8
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.0041d10e
lea ecx, [esp + 0x14]
mov byte [esp + 0x8240], 0
call fcn.0041d10e
mov edi, str..ldzip
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ecx
call fcn.0040a2f0
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x134]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x18]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x824c]
lea ecx, [esp + 0x14]
push edx
call fcn.0041d17c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x8248], 2
call fcn.00405830
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
add esp, 8
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0041d10e
lea ecx, [esp + 0x14]
mov byte [esp + 0x8240], 0
call fcn.0041d10e
mov edi, str..ldrc4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x134]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
push eax
push ecx
push edx
call fcn.0040a6b0
add esp, 0x10
test ebx, ebx
je 0x402ef1
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42f1d4
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp + 0x114], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ecx
call fcn.0040b7a0
mov esi, eax
add esp, 8
test esi, esi
je 0x402fbb
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x402f97
push esi
push 0x8000
lea edx, [esp + 0x240]
push 1
push edx
call fcn.0040b8ec
add esp, 0x10
test eax, eax
jle 0x402f97
mov ecx, dword [esp + 0x8248]
lea edx, [esp + 0x238]
push ecx
push eax
push 1
push edx
call fcn.0040b7b3
add esp, 0x10
test eax, eax
je 0x402f97
mov ecx, dword [ebp + 0x114]
add ecx, eax
mov dword [ebp + 0x114], ecx
mov al, byte [esi + 0xc]
test bl, al
je 0x402f47
push esi
call fcn.0040b6f2
mov eax, dword [ebp + 0x114]
add esp, 4
test eax, eax
jne 0x402fed
mov eax, dword [esp + 0x824c]
push 0
push eax
push str.File__s__Write___d__to_DatFile
jmp 0x402fcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x138]
push eax
push str.fopen_File__s__Fail__d_
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041c74a
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, 0x433191
push 0
push edx
call fcn.00407170
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x8240], 0xffffffff
call fcn.0041d10e
mov ecx, dword [esp + 0x8238]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x8234
ret