Function at 0x4328a6
Capabilities:
Check if file exists
Clear file content
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
push edi
mov edi, edx
test ebx, ebx
je 0x432b28
test edi, edi
je 0x432b28
test ecx, ecx
je 0x432b28
cmp dword [0x475368], 1
jne 0x432931
test eax, 0x4000100
jne 0x432931
mov edx, dword [edi + 4]
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
mov dword [ebp - 0x38], esi
call fcn.0043e560
test eax, eax
js 0x43292e
cmp dword [ebp - 0x38], esi
je 0x43292e
push 0x2a9
jmp 0x432b2a
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x28], 2
jne 0x432954
test eax, 0x100
jne 0x432954
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432954
mov ecx, dword [edi + 4]
call fcn.0043e3cc
or dword [ebp - 0x24], 0x2200000
lea edx, [ebp - 0x2c]
push esi
mov ecx, ebx
call fcn.0042fd2c
mov eax, dword [ebp - 0x2c]
mov edx, dword [edi + 4]
and eax, 0x30000
push ecx
push dword [ebp - 0x24]
sub eax, 0x10000
push dword [ebp - 0x28]
neg eax
push ecx
sbb eax, eax
and eax, 0xfef40000
push ecx
add eax, 0xc11d0100
mov ecx, ebx
push eax
call fcn.0043f064
mov ebx, eax
cmp ebx, 0xffffffff
je 0x432acc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4329ec
push esi
push esi
push dword [eax + 4]
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x432a8f
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x432a8f
push esi
push esi
push dword [0x475b9c]
push dword [0x475b98]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x432a8f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 1
test ecx, 0x200
jne 0x432a1f
test eax, eax
je 0x432ab5
test dword [ebp - 0x2c], 0x1000000
je 0x432ab5
test ecx, 0x4000100
jne 0x432ab5
cmp dword [edi + 0x10], esi
jne 0x432ab5
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], esi
push eax
push esi
push esi
push esi
push esi
push 0x900c4
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x432a81
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0x432a77
mov eax, dword [ecx]
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x980c8
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x432a7a
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x432ab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
jne 0x432ab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x18], 0
mov esi, eax
je 0x432b03
push 0xde6
push 0x406e38
push esi
call fcn.00411710
push eax
push 0x406e68
jmp 0x432af0
mov eax, dword [ebp - 0x3c]
mov edx, ebx
mov ecx, dword [ebp - 0x34]
mov dword [eax], ebx
push dword [edi + 0xc]
push dword [edi + 4]
call fcn.0043e139
jmp 0x432afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x18], 0
mov esi, eax
je 0x432b18
push 0xdf1
push 0x406e38
push esi
call fcn.00411710
push eax
push 0x406e90
push dword [edi + 4]
push dword [ebp - 0x34]
push 1
call fcn.00434d80
cmp dword [ebp - 0x20], 0
jne 0x432b18
cmp ebx, 0xffffffff
je 0x432b18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x432b23
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
jmp 0x432b32
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret 0x14