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 0x402a73
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x402932
mov edi, eax
dec eax
jne 0x402b98
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 0x402843
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.00402c80
add esp, 0xc
cmp ebx, edi
je 0x4026e6
cmp byte [esi + 0xf], 0
movzx eax, byte [ebp - 0x20d]
js 0x402bd5
test al, al
jns 0x402664
mov ecx, ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.004106c0
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.00411ae0
add esp, 4
movzx eax, byte [esi + 0xf]
test al, al
jns 0x402769
mov eax, dword [esi + 8]
test eax, eax
je 0x4028dc
xorps xmm0, xmm0
movsd qword [ebp - 0x248], xmm0
mov dword [ebp - 0x240], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x4027ff
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
movups xmmword [ebp - 0x228], xmm0
test eax, eax
je 0x4029d5
mov ecx, eax
call dword [0x451b2c]
push 0x800
call ecx
test eax, eax
je 0x40285a
push str.version.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x4029d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x93
jmp 0x40286c
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 0x4028ad
push dword [ebp - 0x210]
call fcn.00411ae0
add esp, 4
jmp 0x4028ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0xf4
jmp 0x402944
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 0x40289c
push dword [ebp - 0x210]
call fcn.00411ae0
add esp, 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x4028ad
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24c], 0
cmp byte [ebp - 0x23d], 0
js 0x402918
je 0x4028dc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x23d], 0
js 0x4029a8
cmp dword [esi], 0
jne 0x40297a
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 0x40297a
push dword [ebp - 0x210]
call fcn.00411ae0
add esp, 4
jmp 0x40297a
cmp dword [ebp - 0x244], 0
mov eax, dword [ebp - 0x248]
jne 0x4028c8
push eax
call fcn.00411ae0
add esp, 4
jmp 0x4028dc
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 0x402974
push dword [ebp - 0x210]
call fcn.00411ae0
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
cmp byte [ebp - 0x22d], 0
jns 0x402991
push dword [ebp - 0x238]
call fcn.00411ae0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412419
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 0x4028dc
mov eax, dword [ebp - 0x248]
jmp 0x402927
xor edi, edi
cmp byte [esi + 0xf], 0
jns 0x4029e0
mov ebx, dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test edi, edi
je 0x40289c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x219]
mov dword [ebp - 0x228], 0
test al, al
js 0x402a34
je 0x40289c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x219], 0
js 0x402a49
mov byte [ebp - 0x219], 0
jmp 0x40289c
cmp dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x224]
jne 0x402a18
push eax
jmp 0x402894
mov eax, dword [ebp - 0x224]
mov word [eax], 0
mov dword [ebp - 0x220], 0
cmp byte [ebp - 0x219], 0
jns 0x40289c
mov eax, dword [ebp - 0x224]
jmp 0x402a43
lea ebx, [ebp - 0x218]
push 0x208
push 0xff
push ebx
call fcn.00415640
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.00437a20
movzx eax, byte [edi + 0xb]
test al, al
jns 0x402ac7
mov eax, dword [ebp - 0x224]
mov edi, dword [ebp - 0x228]
test eax, eax
je 0x402ae7
add eax, eax
test eax, eax
je 0x402ae7
lea edx, [eax - 2]
cmp word [edi + eax - 2], 0x5c
mov eax, edx
jne 0x402acd
cmp edx, 0xfffffffe
jne 0x402bf5
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 0x402b29
push dword [ebp - 0x244]
call fcn.00411ae0
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov bl, 1
cmp byte [ebp - 0x21d], 0
jns 0x402b48
push dword [ebp - 0x228]
call fcn.00411ae0
add esp, 4
test bl, bl
je 0x402691
jmp 0x40297a
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.00410dd0
mov dword [ebx + 4], 0
cmp byte [ebx + 0xb], 0
jns 0x402b90
mov ebx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x250]
jmp 0x402ba9
cmp eax, 5
mov dword [ebp - 0x250], eax
jae 0x402b55
lea ebx, [ebp - 0x238]
add eax, eax
push eax
push 0
push ebx
call fcn.00415640
add esp, 0xc
cmp byte [ebp - 0x22d], 0
jns 0x402c4e
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.004105f0
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.004104d0
cmp byte [ebp - 0x22d], 0
jns 0x402c2b
push dword [ebp - 0x238]
call fcn.00411ae0
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 0x402b31
mov eax, dword [ebp - 0x250]
and al, 0x7f
mov byte [ebp - 0x22d], al
jmp 0x40262a