Function at 0x40452c
Capabilities:
Check if file exists
Delete file
Get disk size
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, 0x41e4ec
push esi
lea ecx, [ebp - 0x10]
call fcn.00403a61
mov eax, dword [ebp + 0xc]
push dword [eax]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4046a8
cmp dword [0x41e468], ebx
jne 0x404572
mov ebx, 0x800700b7
push 0xb1
jmp 0x404909
push esi
lea ecx, [ebp - 0xc]
call fcn.00403a61
push esi
lea ecx, [ebp - 4]
call fcn.00403a61
push 1
lea ecx, [ebp - 0xc]
call fcn.004040b0
test eax, eax
jne 0x4045e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4045a6
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jge 0x4045e6
push 0xb8
push 0x4013c8
push ebx
push 0x40139c
push 0x4015bc
push 1
call fcn.0041956b
mov ecx, dword [ebp - 4]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00403747
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00403747
jmp 0x404923
push 2
lea ecx, [ebp - 4]
call fcn.004040b0
test eax, eax
jne 0x404615
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404608
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jge 0x404615
push 0xbb
jmp 0x4045b1
mov edi, dword [ebp - 0xc]
push 0x10044
push edi
push dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x404689
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404695
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404651
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jge 0x404695
push 0xc2
push 0x4013c8
push ebx
push 0x40139c
push 0x4015bc
push 1
call fcn.0041956b
mov ecx, dword [ebp - 4]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00403747
lea ecx, [edi - 0x10]
jmp 0x4045dc
mov ebx, 0x800700b7
push 0xc7
jmp 0x40465c
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00403747
lea ecx, [edi - 0x10]
call fcn.00403747
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x4046e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4046d2
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jge 0x4046e2
push 0xcf
jmp 0x404909
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
xor eax, eax
xor edx, edx
or eax, ecx
mov ecx, dword [ebp + 0xc]
or edi, edx
add eax, 0x100000
adc edi, edx
push 0x5c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.00403863
cmp eax, 0xffffffff
jne 0x40471b
mov ebx, 0x80070057
push 0xdd
jmp 0x404909
mov ecx, dword [ebp + 0xc]
inc eax
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00403d59
push eax
lea ecx, [ebp - 0x10]
call fcn.00403fd6
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00403747
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x404776
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404766
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jge 0x404776
push 0xe5
jmp 0x404909
mov eax, dword [ebp - 0x14]
cmp eax, edi
ja 0x404923
jb 0x40478f
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jae 0x404923
cmp dword [0x41e468], 0
je 0x4048ff
push esi
lea ecx, [ebp + 8]
call fcn.00403a61
push esi
lea ecx, [ebp - 0xc]
call fcn.00403a61
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
and eax, 0x7fffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
fild qword [ebp - 0x28]
mov ebx, 0x80000000
and dword [ebp - 4], ebx
fild qword [ebp - 8]
push ecx
push ecx
fchs
mov edi, 0x4015b0
faddp st(1)
lea eax, [ebp + 8]
fmul qword [0x4015a8]
fstp qword [esp]
push edi
push eax
call fcn.00404079
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
and dword [ebp - 0x1c], ebx
and eax, 0x7fffffff
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
add esp, 8
fild qword [ebp - 0x20]
lea eax, [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x4015a8]
fstp qword [esp]
push edi
push eax
call fcn.00404079
add esp, 0x10
push esi
lea ecx, [ebp - 4]
call fcn.00403a61
push esi
lea ecx, [ebp + 0xc]
call fcn.00403a61
push 1
lea ecx, [ebp - 4]
call fcn.004040b0
test eax, eax
jne 0x4048b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404864
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jge 0x4048b2
push 0xf9
push 0x4013c8
push ebx
push 0x40139c
push 0x4015bc
push 1
call fcn.0041956b
mov ecx, dword [ebp + 0xc]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00403747
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00403747
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00403747
mov ecx, dword [ebp + 8]
jmp 0x4045d9
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
push esi
push edi
lea eax, [ebp + 0xc]
push 3
push eax
call fcn.00404342
mov ebx, dword [ebp - 4]
add esp, 0x10
push 0x10010
push ebx
push dword [ebp + 0xc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00403747
lea ecx, [ebx - 0x10]
call fcn.00403747
lea ecx, [edi - 0x10]
call fcn.00403747
lea ecx, [esi - 0x10]
call fcn.00403747
mov ebx, 0x80070070
push 0x102
push 0x4013c8
push ebx
push 0x40139c
push 0x4015bc
push 1
call fcn.0041956b
add esp, 0x18
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00403747
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8