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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425396
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x164
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x40328a
mov edx, str.Error_getting_dir
mov ecx, 0x432168
call fcn.00405f10
push eax
call fcn.004061b0
add esp, 4
xor al, al
jmp 0x4034e5
xorps xmm0, xmm0
mov dword [ebp - 0x148], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x144], 0
movups xmmword [ebp - 0x158], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032b1
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.00406410
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x144]
mov eax, edx
mov ecx, dword [ebp - 0x148]
sub eax, ecx
cmp eax, 1
jb 0x403310
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x158]
cmova eax, dword [ebp - 0x158]
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x158]
jmp 0x403331
push 1
push 0x42dd90
mov byte [ebp - 0x140], 0
lea ecx, [ebp - 0x158]
push dword [ebp - 0x140]
push 1
call fcn.00406a70
mov dword [ebp - 0x160], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x170], xmm0
mov dword [ebp - 0x15c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x170], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x160], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push esi
lea edx, [ebp - 0x170]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.00406250
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x15c]
cmp ecx, 0xf
jbe 0x4033ce
mov edx, dword [ebp - 0x170]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4033c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403502
push ecx
push edx
call fcn.0040a0b9
add esp, 8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x144]
cmp ecx, 0xf
jbe 0x403427
mov edx, dword [ebp - 0x158]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40341d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403502
push ecx
push edx
call fcn.0040a0b9
add esp, 8
cmp dword [ebp - 0x124], 0xf
lea eax, [ebp - 0x138]
mov dword [ebp - 0x148], 0
cmova eax, dword [ebp - 0x138]
push eax
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40348a
mov byte [ebp - 0x139], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.Error_deleting
mov ecx, 0x432168
call fcn.00405f10
add esp, 4
mov ecx, eax
call fcn.00404060
jmp 0x4034a0
mov edx, str.File_removed
mov byte [ebp - 0x139], 1
mov ecx, 0x432070
call fcn.00405f10
push eax
call fcn.004061b0
mov ecx, dword [ebp - 0x124]
add esp, 4
cmp ecx, 0xf
jbe 0x4034df
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4034d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403507
push ecx
push edx
call fcn.0040a0b9
add esp, 8
mov al, byte [ebp - 0x139]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409c25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00410aa9
call fcn.00410aa9
int3