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

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x280]
push edi
call fcn.00402fc0
add esp, 4
test eax, eax
jne 0x402a24
mov esi, dword [esp + 0x274]
test esi, esi
je 0x40280d
push 0x64
push 1
push 0x404
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esp + 0x278]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
push ebx
call fcn.00403600
add esp, 0x10
test eax, eax
jne 0x402a24
mov ebp, dword [esp + 0x284]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402885
mov eax, dword [esp + 0x288]
test eax, eax
je 0x402885
cmp dword [eax], 0
jne 0x402885
mov edx, dword [esp + 0x27c]
push eax
push 1
push edx
push esi
call fcn.00403050
mov edi, eax
add esp, 0x10
test edi, edi
je 0x402885
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret
push 0
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
call fcn.0041274a
lea edx, [esp + 0x30]
push 0x43d0d0
push edx
call fcn.00412213
add esp, 0x1c
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4028de
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xc0008002
pop ebx
add esp, 0x260
ret
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
add ecx, 0x3a
adc eax, 0
cmp edx, eax
jb 0x402959
ja 0x4028fe
mov eax, dword [esp + 0x14]
cmp eax, ecx
jbe 0x402959
test esi, esi
je 0x402912
push 0x64
push 3
push 0x404
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ebp
push ecx
push edx
push ebx
push esi
call fcn.00402d40
add esp, 0x14
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x402a22
mov ecx, dword [esp + 0x280]
push ecx
call fcn.004033a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebp
mov ecx, dword [esp + 0x280]
lea eax, [esp + 0x68]
push eax
push ecx
push ebx
push esi
call fcn.004030c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x402a22
lea edx, [esp + 0x10]
lea eax, [esp + 0x68]
push edx
push eax
push ebx
call fcn.00403510
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4029f7
test esi, esi
je 0x4029b4
push 0x64
push 3
push 0x404
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x284]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
push ebx
push esi
call fcn.00402d40
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov edi, eax
push ecx
call ebp
test edi, edi
jne 0x4029f7
lea edx, [esp + 0x68]
push edx
call fcn.004033a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret
test esi, esi
je 0x402a0b
push 0x64
push 5
push 0x404
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x280]
lea ecx, [esp + 0x68]
push eax
push ecx
push ebx
push esi
call fcn.004031c0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret