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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov esi, ecx
mov eax, dword [0x450014]
xor eax, ebp
mov dword [esp + 0x268], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
test edx, edx
je 0x402167
lea edi, [esp + 0x60]
push 0x208
push 0xff
push edi
call fcn.0040f7f0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
push edi
call fcn.0041cdd8
add esp, 4
cmp eax, 0x7ffffff0
jae 0x40272a
mov ebx, eax
cmp eax, 5
jae 0x4021b7
lea edi, [esp + 0x50]
mov byte [edi + 0xb], bl
cmp ebx, 3
jne 0x402719
movzx eax, word [esp + 0x64]
mov word [esp + 0x54], ax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
jmp 0x4021f8
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x4022fa
mov edi, eax
dec eax
lea ebx, [esp + 0x40]
mov ecx, ebx
push 0
push eax
call fcn.0040ba40
cmp byte [ebx + 0xb], 0
jns 0x402192
mov ebx, dword [esp + 0x40]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x4022ae
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esp + 0x60]
mov dword [edi], 0xfd
jmp 0x40230a
mov dword [esp + 0xc], esi
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.0040bab0
add esp, 4
mov edi, eax
mov dword [esp + 0x50], eax
or esi, 0x80000000
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov eax, ebx
add eax, ebx
push eax
lea eax, [esp + 0x64]
push eax
push edi
call fcn.0040ecf0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov word [edi + ebx*2], 0
lea ebx, [esp + 0x50]
mov ecx, ebx
push 0xffffffffffffffff
push 0x5c
call fcn.0040b9f0
mov edi, eax
cmp eax, 0xffffffff
je 0x402252
lea eax, [edi + 1]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x20]
push edx
push eax
push 0
push ebx
call fcn.00409ee0
cmp byte [esp + 0x4b], 0
jns 0x40223c
push dword [esp + 0x40]
call fcn.0040bae0
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x40], xmm0
jmp 0x402292
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ebx, [esp + 0x20]
mov dword [ebx], 0x107
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, ebx
call fcn.00401f20
cmp byte [ebx + 0x13], 0
jns 0x40228c
push dword [esp + 0x28]
call fcn.0040bae0
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
cmp byte [esp + 0x5b], 0
jns 0x4022a5
push dword [esp + 0x50]
call fcn.0040bae0
add esp, 4
cmp edi, 0xffffffff
je 0x4026d2
mov ebx, esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edi, [esp + 0x14]
xorps xmm0, xmm0
movaps xmmword [edi - 4], xmm0
lea ecx, [esp + 0x60]
lea edx, [esp + 0x40]
push dword [ebp + 0x10]
push eax
push esi
call fcn.00402740
add esp, 0xc
mov dword [esp + 0xc], edi
cmp byte [edi + 0xb], 0
js 0x402356
cmp byte [esp + 0x6b], 0
jns 0x40233f
lea ecx, [esp + 0x14]
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.0040a0b0
jmp 0x402372
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esp + 0x60]
mov dword [edi], 0xf8
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.00401f20
cmp byte [edi + 0x13], 0
jns 0x402334
push dword [esp + 0x68]
call fcn.0040bae0
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
jmp 0x4026d2
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x14]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x60]
movsd qword [ecx], xmm0
jmp 0x402372
lea edx, [esp + 0x60]
movzx eax, byte [edx + 0xb]
test al, al
cmovs eax, dword [edx + 4]
cmovs edx, dword [edx]
lea ecx, [esp + 0x14]
push eax
push edx
call fcn.00409fa0
mov esi, ebx
cmp byte [esp + 0x6b], 0
js 0x40238f
mov word [esp + 0x60], 0
mov byte [esp + 0x6b], 0
mov ecx, dword [esp + 0x64]
xor eax, eax
jmp 0x4023a6
mov eax, dword [esp + 0x60]
mov word [eax], 0
mov dword [esp + 0x64], 0
xor ecx, ecx
mov al, byte [esp + 0x6b]
test al, al
movzx edx, al
cmovs edx, ecx
test edx, edx
je 0x4023e1
test al, al
lea eax, [esp + 0x60]
jns 0x4023be
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esp + 0x6b], 0
jns 0x4023f1
mov eax, dword [esp + 0x60]
mov word [eax], 0
mov dword [esp + 0x64], 0
mov al, byte [esp + 0x6b]
test al, al
jns 0x4023f1
push dword [esp + 0x60]
call fcn.0040bae0
add esp, 4
movzx eax, byte [esp + 0x1f]
test al, al
jns 0x4023fe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4025f2
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push 0x44a446
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x402487
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
test eax, eax
je 0x402468
push 0x800
call eax
test eax, eax
je 0x4024c2
push str.version.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x402460
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esp + 0x50], edi
test edi, edi
je 0x4024d4
cmp byte [esp + 0x1f], 0
lea eax, [esp + 0x14]
jns 0x402477
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [esp + 0x10], eax
jmp 0x40250e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esp + 0x60]
mov dword [edi], 0x82
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.00401f20
cmp byte [edi + 0x13], 0
jns 0x402580
push dword [esp + 0x68]
jmp 0x402578
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esp + 0x60]
mov dword [edi], 0x91
jmp 0x4024e4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esp + 0x60]
mov dword [edi], 0x9c
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.00401f20
cmp byte [edi + 0x13], 0
jns 0x40250e
push dword [esp + 0x68]
call fcn.0040bae0
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40251d
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esp + 0x50], 0
movzx eax, byte [esp + 0x5f]
mov ecx, eax
test al, al
jns 0x402534
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x402570
test al, al
jns 0x402542
mov eax, dword [esp + 0x54]
jmp 0x402546
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esp + 0x5f], 0
js 0x40255b
mov byte [esp + 0x5f], 0
jmp 0x402580
mov eax, dword [esp + 0x54]
mov word [eax], 0
mov dword [esp + 0x58], 0
mov al, byte [esp + 0x5f]
test al, al
jns 0x402580
push dword [esp + 0x54]
call fcn.0040bae0
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40258f
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esp + 0x20], 0
movzx eax, byte [esp + 0x2f]
mov ecx, eax
test al, al
jns 0x4025a6
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4025e2
test al, al
jns 0x4025b4
mov eax, dword [esp + 0x24]
jmp 0x4025b8
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esp + 0x2f], 0
js 0x4025cd
mov byte [esp + 0x2f], 0
jmp 0x4025f2
mov eax, dword [esp + 0x24]
mov word [eax], 0
mov dword [esp + 0x28], 0
mov al, byte [esp + 0x2f]
test al, al
jns 0x4025f2
push dword [esp + 0x24]
call fcn.0040bae0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40262b
lea edi, [esp + 0x60]
mov dword [edi], 0x111
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00401f20
cmp byte [edi + 0x13], 0
jns 0x402627
push dword [esp + 0x68]
call fcn.0040bae0
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi], eax
lea ecx, [esi + 4]
cmp byte [esp + 0x1f], 0
js 0x40264b
lea edx, [esp + 0x14]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
movsd xmm0, qword [edx]
movsd qword [ecx], xmm0
jmp 0x402663
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.0040b470
cmp byte [esp + 0x1f], 0
js 0x4026fd
mov word [esp + 0x14], 0
mov byte [esp + 0x1f], 0
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], 0
test al, al
movzx edx, al
cmovs edx, ecx
test edx, edx
je 0x4026c2
test al, al
jns 0x402695
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esp + 0x1f], 0
js 0x4026ad
mov byte [esp + 0x1f], 0
jmp 0x4026d2
mov eax, dword [esp + 0x14]
mov word [eax], 0
mov dword [esp + 0x18], 0
mov al, byte [esp + 0x1f]
test al, al
jns 0x4026d2
push dword [esp + 0x14]
call fcn.0040bae0
add esp, 4
cmp byte [esp + 0x4b], 0
jns 0x4026e5
push dword [esp + 0x40]
call fcn.0040bae0
add esp, 4
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0040c5fb
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x14]
mov word [eax], 0
mov dword [esp + 0x18], 0
xor ecx, ecx
mov al, byte [esp + 0x1f]
jmp 0x402675
test ebx, ebx
je 0x4021f8
mov dword [esp + 0xc], esi
jmp 0x4021e1
lea ecx, [esp + 0x50]
call fcn.0043f9b0
int3