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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x240
mov esi, ecx
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], eax
test edx, edx
jne 0x402586
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x402661
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0xef
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402300
cmp byte [edi + 0x13], 0
jns 0x402552
push dword [ebp - 0x210]
call fcn.0040dd00
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
cmp byte [ebp - 0x22d], 0
jns 0x40256f
push dword [ebp - 0x238]
call fcn.0040dd00
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e639
mov eax, esi
add esp, 0x240
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.004117b0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
xor eax, eax
dec eax
lea ebx, [ebp - 0x228]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
push edi
call fcn.00433230
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4025da
mov eax, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x228]
test eax, eax
je 0x4025fa
add eax, eax
test eax, eax
je 0x4025fa
lea edx, [eax - 2]
cmp word [ebx + eax - 2], 0x5c
mov eax, edx
jne 0x4025e0
cmp edx, 0xfffffffe
jne 0x402a0f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x24c]
mov dword [edi], 0xfe
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402300
cmp byte [edi + 0x13], 0
jns 0x402638
push dword [ebp - 0x244]
call fcn.0040dd00
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov bl, 1
cmp byte [ebp - 0x21d], 0
jns 0x402657
push dword [ebp - 0x228]
call fcn.0040dd00
add esp, 4
test bl, bl
jne 0x402558
jmp 0x40268c
mov ebx, eax
dec eax
lea edi, [ebp - 0x238]
mov ecx, edi
push 0
push eax
call fcn.0040db30
cmp byte [edi + 0xb], 0
jns 0x402680
mov edi, dword [ebp - 0x238]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x4026e3
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
lea ebx, [ebp - 0x218]
lea edx, [ebp - 0x238]
mov ecx, ebx
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00402a90
add esp, 0xc
cmp edi, ebx
je 0x40270f
cmp byte [esi + 0xf], 0
movzx eax, byte [ebp - 0x20d]
js 0x402a68
test al, al
jns 0x4026fa
mov ecx, edi
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.0040b3e0
jmp 0x40270f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0xf4
jmp 0x402526
mov eax, dword [ebp - 0x210]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x218]
movsd qword [edi], xmm0
cmp byte [ebp - 0x20d], 0
js 0x402732
mov word [ebp - 0x218], 0
mov byte [ebp - 0x20d], 0
mov ecx, dword [ebp - 0x214]
xor eax, eax
jmp 0x40274f
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
xor ecx, ecx
mov al, byte [ebp - 0x20d]
test al, al
movzx edx, al
cmovs edx, ecx
test edx, edx
je 0x402790
test al, al
jns 0x402765
mov ebx, dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x20d], 0
jns 0x4027a2
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
mov al, byte [ebp - 0x20d]
test al, al
jns 0x4027a2
push dword [ebp - 0x218]
call fcn.0040dd00
add esp, 4
movzx eax, byte [esi + 0xf]
test al, al
jns 0x4027ad
mov eax, dword [esi + 8]
test eax, eax
je 0x4029c8
xor ebx, ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x240], ebx
push 0x44f63c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x40284e
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
movaps xmm0, xmmword [0x44f1c0]
movups xmmword [ebp - 0x228], xmm0
test eax, eax
je 0x402828
mov ecx, eax
call dword [section..00cfg]
push 0x800
call ecx
test eax, eax
je 0x402895
push str.version.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test eax, eax
je 0x4028a9
cmp byte [esi + 0xf], 0
jns 0x402831
mov edi, dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [esi], eax
test ebx, ebx
je 0x4028e7
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x4028e7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x79
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402300
cmp byte [edi + 0x13], 0
jns 0x402960
push dword [ebp - 0x210]
call fcn.0040dd00
add esp, 4
jmp 0x402960
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x88
jmp 0x4028bb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x93
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402300
cmp byte [edi + 0x13], 0
jns 0x4028e7
push dword [ebp - 0x210]
call fcn.0040dd00
add esp, 4
mov dword [ebp - 0x228], 0
cmp byte [ebp - 0x219], 0
js 0x402904
je 0x40294f
lea eax, [ebp - 0x224]
jmp 0x402913
cmp dword [ebp - 0x220], 0
je 0x402941
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x219], 0
jns 0x40294f
mov eax, dword [ebp - 0x224]
mov word [eax], 0
mov dword [ebp - 0x220], 0
cmp byte [ebp - 0x219], 0
jns 0x40294f
push dword [ebp - 0x224]
call fcn.0040dd00
add esp, 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x402960
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 0x24c], 0
cmp byte [ebp - 0x23d], 0
js 0x40297d
je 0x4029c8
lea eax, [ebp - 0x248]
jmp 0x40298c
cmp dword [ebp - 0x244], 0
je 0x4029ba
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x23d], 0
jns 0x4029c8
mov eax, dword [ebp - 0x248]
mov word [eax], 0
mov dword [ebp - 0x244], 0
cmp byte [ebp - 0x23d], 0
jns 0x4029c8
push dword [ebp - 0x248]
call fcn.0040dd00
add esp, 4
cmp dword [esi], 0
jne 0x402558
movaps xmm0, xmmword [0x44f1d0]
lea edi, [ebp - 0x218]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402300
cmp byte [edi + 0x13], 0
jns 0x402558
push dword [ebp - 0x210]
call fcn.0040dd00
add esp, 4
jmp 0x402558
sar edx, 1
inc edx
lea eax, [ebp - 0x22c]
lea edi, [ebp - 0x228]
lea ecx, [ebp - 0x24c]
push eax
push edx
push 0
push edi
call fcn.0040b1e0
cmp byte [ebp - 0x22d], 0
jns 0x402a45
push dword [ebp - 0x238]
call fcn.0040dd00
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 0x402640
test al, al
cmovs eax, dword [ebp - 0x214]
mov edx, dword [ebp - 0x218]
cmovns edx, ebx
mov ecx, edi
push eax
push edx
call fcn.0040b310
jmp 0x40270f