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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x244
mov esi, ecx
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movsd qword [ebp - 0x238], xmm0
mov dword [ebp - 0x230], 0
test edx, edx
jne 0x402a6d
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x40292c
mov edi, eax
dec eax
jne 0x402b92
lea ebx, [ebp - 0x238]
mov byte [ebx + 0xb], 0
mov word [ebx + edi*2 - 2], 0
cmp byte [ebp - 0x22d], 0
js 0x40267b
lea eax, [ebp - 0x238]
jmp 0x402681
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
xor ecx, ecx
mov al, byte [ebp - 0x20d]
jmp 0x40270b
mov eax, dword [ebp - 0x210]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x218]
movsd qword [ebx], xmm0
jmp 0x4026e6
mov eax, dword [ebp - 0x238]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x40283d
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
lea edi, [ebp - 0x218]
lea edx, [ebp - 0x238]
mov ecx, edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00402c70
add esp, 0xc
cmp ebx, edi
je 0x4026e6
cmp byte [esi + 0xf], 0
movzx eax, byte [ebp - 0x20d]
js 0x402bcf
test al, al
jns 0x402664
mov ecx, ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.00410340
cmp byte [ebp - 0x20d], 0
js 0x402642
mov word [ebp - 0x218], 0
mov byte [ebp - 0x20d], 0
mov ecx, dword [ebp - 0x214]
xor eax, eax
test al, al
movzx edx, al
cmovs edx, ecx
test edx, edx
je 0x40274c
test al, al
jns 0x402721
mov edi, dword [ebp - 0x218]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x20d], 0
jns 0x40275e
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
mov al, byte [ebp - 0x20d]
test al, al
jns 0x40275e
push dword [ebp - 0x218]
call fcn.00411540
add esp, 4
movzx eax, byte [esi + 0xf]
test al, al
jns 0x402769
mov eax, dword [esi + 8]
test eax, eax
je 0x4028d6
xorps xmm0, xmm0
movsd qword [ebp - 0x248], xmm0
mov dword [ebp - 0x240], 0
push 0x44f45e
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x4027f9
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xorps xmm0, xmm0
movups xmmword [ebp - 0x228], xmm0
test eax, eax
je 0x4029cf
mov ecx, eax
call dword [0x451b30]
push 0x800
call ecx
test eax, eax
je 0x402854
push str.version.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
test eax, eax
jne 0x4029d1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x93
jmp 0x402866
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x79
mov dword [edi + 4], eax
xorps xmm0, xmm0
movsd qword [edi + 8], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.004023f0
cmp byte [edi + 0x13], 0
jns 0x4028a7
push dword [ebp - 0x210]
call fcn.00411540
add esp, 4
jmp 0x4028a7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0xf4
jmp 0x40293e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x88
mov dword [edi + 4], eax
xorps xmm0, xmm0
movsd qword [edi + 8], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.004023f0
cmp byte [edi + 0x13], 0
jns 0x402896
push dword [ebp - 0x210]
call fcn.00411540
add esp, 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x4028a7
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 0x24c], 0
cmp byte [ebp - 0x23d], 0
js 0x402912
je 0x4028d6
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x23d], 0
js 0x4029a2
cmp dword [esi], 0
jne 0x402974
lea edi, [ebp - 0x218]
mov dword [edi], 0x108
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.004023f0
cmp byte [edi + 0x13], 0
jns 0x402974
push dword [ebp - 0x210]
call fcn.00411540
add esp, 4
jmp 0x402974
cmp dword [ebp - 0x244], 0
mov eax, dword [ebp - 0x248]
jne 0x4028c2
push eax
call fcn.00411540
add esp, 4
jmp 0x4028d6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0xef
mov dword [edi + 4], eax
xorps xmm0, xmm0
movsd qword [edi + 8], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.004023f0
cmp byte [edi + 0x13], 0
jns 0x40296e
push dword [ebp - 0x210]
call fcn.00411540
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
cmp byte [ebp - 0x22d], 0
jns 0x40298b
push dword [ebp - 0x238]
call fcn.00411540
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411e79
mov eax, esi
add esp, 0x244
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x248]
mov word [eax], 0
mov dword [ebp - 0x244], 0
cmp byte [ebp - 0x23d], 0
jns 0x4028d6
mov eax, dword [ebp - 0x248]
jmp 0x402921
xor edi, edi
cmp byte [esi + 0xf], 0
jns 0x4029da
mov ebx, dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [esi], eax
test edi, edi
je 0x402896
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov al, byte [ebp - 0x219]
mov dword [ebp - 0x228], 0
test al, al
js 0x402a2e
je 0x402896
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x219], 0
js 0x402a43
mov byte [ebp - 0x219], 0
jmp 0x402896
cmp dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x224]
jne 0x402a12
push eax
jmp 0x40288e
mov eax, dword [ebp - 0x224]
mov word [eax], 0
mov dword [ebp - 0x220], 0
cmp byte [ebp - 0x219], 0
jns 0x402896
mov eax, dword [ebp - 0x224]
jmp 0x402a3d
lea ebx, [ebp - 0x218]
push 0x208
push 0xff
push ebx
call fcn.004150a0
add esp, 0xc
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
xor eax, eax
dec eax
lea edi, [ebp - 0x228]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push ebx
call fcn.00437480
movzx eax, byte [edi + 0xb]
test al, al
jns 0x402ac1
mov eax, dword [ebp - 0x224]
mov edi, dword [ebp - 0x228]
test eax, eax
je 0x402ae1
add eax, eax
test eax, eax
je 0x402ae1
lea edx, [eax - 2]
cmp word [edi + eax - 2], 0x5c
mov eax, edx
jne 0x402ac7
cmp edx, 0xfffffffe
jne 0x402bef
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x24c]
mov dword [edi], 0xfe
mov dword [edi + 4], eax
xorps xmm0, xmm0
movsd qword [edi + 8], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.004023f0
cmp byte [edi + 0x13], 0
jns 0x402b23
push dword [ebp - 0x244]
call fcn.00411540
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov bl, 1
cmp byte [ebp - 0x21d], 0
jns 0x402b42
push dword [ebp - 0x228]
call fcn.00411540
add esp, 4
test bl, bl
je 0x402691
jmp 0x402974
mov eax, edi
add eax, 0xfffffffb
sub esp, 0x18
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], 4
lea ebx, [ebp - 0x238]
mov ecx, ebx
call fcn.00410820
mov dword [ebx + 4], 0
cmp byte [ebx + 0xb], 0
jns 0x402b8a
mov ebx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x250]
jmp 0x402ba3
cmp eax, 5
mov dword [ebp - 0x250], eax
jae 0x402b4f
lea ebx, [ebp - 0x238]
add eax, eax
push eax
push 0
push ebx
call fcn.004150a0
add esp, 0xc
cmp byte [ebp - 0x22d], 0
jns 0x402c48
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x234], eax
jmp 0x40262a
test al, al
cmovs eax, dword [ebp - 0x214]
mov edx, dword [ebp - 0x218]
cmovns edx, edi
mov ecx, ebx
push eax
push edx
call fcn.00410270
jmp 0x4026e6
sar edx, 1
inc edx
lea eax, [ebp - 0x229]
lea edi, [ebp - 0x228]
lea ecx, [ebp - 0x24c]
push eax
push edx
push 0
push edi
call fcn.00410150
cmp byte [ebp - 0x22d], 0
jns 0x402c25
push dword [ebp - 0x238]
call fcn.00411540
add esp, 4
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x230], eax
movsd xmm0, qword [ebp - 0x24c]
movsd qword [ebp - 0x238], xmm0
xor ebx, ebx
jmp 0x402b2b
mov eax, dword [ebp - 0x250]
and al, 0x7f
mov byte [ebp - 0x22d], al
jmp 0x40262a