Function at 0x4024e0
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 0x402596
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x402671
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.00402310
cmp byte [edi + 0x13], 0
jns 0x402562
push dword [ebp - 0x210]
call fcn.0040e020
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
cmp byte [ebp - 0x22d], 0
jns 0x40257f
push dword [ebp - 0x238]
call fcn.0040e020
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e959
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.00411ad0
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.00433550
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4025ea
mov eax, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x228]
test eax, eax
je 0x40260a
add eax, eax
test eax, eax
je 0x40260a
lea edx, [eax - 2]
cmp word [ebx + eax - 2], 0x5c
mov eax, edx
jne 0x4025f0
cmp edx, 0xfffffffe
jne 0x402a1f
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.00402310
cmp byte [edi + 0x13], 0
jns 0x402648
push dword [ebp - 0x244]
call fcn.0040e020
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov bl, 1
cmp byte [ebp - 0x21d], 0
jns 0x402667
push dword [ebp - 0x228]
call fcn.0040e020
add esp, 4
test bl, bl
jne 0x402568
jmp 0x40269c
mov ebx, eax
dec eax
lea edi, [ebp - 0x238]
mov ecx, edi
push 0
push eax
call fcn.0040de50
cmp byte [edi + 0xb], 0
jns 0x402690
mov edi, dword [ebp - 0x238]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x4026f3
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.00402ab0
add esp, 0xc
cmp edi, ebx
je 0x40271f
cmp byte [esi + 0xf], 0
movzx eax, byte [ebp - 0x20d]
js 0x402a78
test al, al
jns 0x40270a
mov ecx, edi
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.0040b740
jmp 0x40271f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0xf4
jmp 0x402536
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 0x402742
mov word [ebp - 0x218], 0
mov byte [ebp - 0x20d], 0
mov ecx, dword [ebp - 0x214]
xor eax, eax
jmp 0x40275f
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 0x4027a0
test al, al
jns 0x402775
mov ebx, dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x20d], 0
jns 0x4027b2
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
mov al, byte [ebp - 0x20d]
test al, al
jns 0x4027b2
push dword [ebp - 0x218]
call fcn.0040e020
add esp, 4
movzx eax, byte [esi + 0xf]
test al, al
jns 0x4027bd
mov eax, dword [esi + 8]
test eax, eax
je 0x4029d8
xor ebx, ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x240], ebx
push 0x44f6ec
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x40285e
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
movaps xmm0, xmmword [0x44f1a0]
movups xmmword [ebp - 0x228], xmm0
test eax, eax
je 0x402838
mov ecx, eax
call dword [section..00cfg]
push 0x800
call ecx
test eax, eax
je 0x4028a5
push str.version.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test eax, eax
je 0x4028b9
cmp byte [esi + 0xf], 0
jns 0x402841
mov edi, dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [esi], eax
test ebx, ebx
je 0x4028f7
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x4028f7
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.00402310
cmp byte [edi + 0x13], 0
jns 0x402970
push dword [ebp - 0x210]
call fcn.0040e020
add esp, 4
jmp 0x402970
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x88
jmp 0x4028cb
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.00402310
cmp byte [edi + 0x13], 0
jns 0x4028f7
push dword [ebp - 0x210]
call fcn.0040e020
add esp, 4
mov dword [ebp - 0x228], 0
cmp byte [ebp - 0x219], 0
js 0x402914
je 0x40295f
lea eax, [ebp - 0x224]
jmp 0x402923
cmp dword [ebp - 0x220], 0
je 0x402951
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x219], 0
jns 0x40295f
mov eax, dword [ebp - 0x224]
mov word [eax], 0
mov dword [ebp - 0x220], 0
cmp byte [ebp - 0x219], 0
jns 0x40295f
push dword [ebp - 0x224]
call fcn.0040e020
add esp, 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x402970
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 0x24c], 0
cmp byte [ebp - 0x23d], 0
js 0x40298d
je 0x4029d8
lea eax, [ebp - 0x248]
jmp 0x40299c
cmp dword [ebp - 0x244], 0
je 0x4029ca
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x23d], 0
jns 0x4029d8
mov eax, dword [ebp - 0x248]
mov word [eax], 0
mov dword [ebp - 0x244], 0
cmp byte [ebp - 0x23d], 0
jns 0x4029d8
push dword [ebp - 0x248]
call fcn.0040e020
add esp, 4
cmp dword [esi], 0
jne 0x402568
movaps xmm0, xmmword [0x44f1b0]
lea edi, [ebp - 0x218]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402310
cmp byte [edi + 0x13], 0
jns 0x402568
push dword [ebp - 0x210]
call fcn.0040e020
add esp, 4
jmp 0x402568
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.0040b540
cmp byte [ebp - 0x22d], 0
jns 0x402a55
push dword [ebp - 0x238]
call fcn.0040e020
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 0x402650
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.0040b670
jmp 0x40271f