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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447260
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x45cefc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x471d64]
xor edi, edi
add eax, 0xfffffff0
xor ebx, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.00402020
add eax, 0x10
mov dword [esp + 0x20], eax
push str.....
push 0x4557a0
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x64], edi
call fcn.00405670
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x403314
mov edx, dword [0x4641d8]
mov eax, dword [edx + 0xc]
mov ecx, 0x4641d8
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.00402c10
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x4032b7
xor ecx, ecx
lea eax, [esp + 0x14]
call fcn.00401fd0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
mov eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
sub eax, edx
mov dword [esp + 0x38], ecx
sbb ecx, edi
add esi, 0xfffffff0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
mov ebx, ecx
mov edi, eax
mov byte [esp + 0x58], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403314
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
fild qword [esp + 0x34]
fld qword [0x456348]
fmul st(1), st(0)
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
call fcn.00423c40
mov ecx, eax
mov dword [esp + 0x14], ecx
fisub dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x456360]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
mov eax, ecx
je 0x40335b
lea eax, [ecx + 1]
mov esi, dword [ebp + 8]
push 0
push 0x400
push ebx
push edi
mov dword [esi], eax
call fcn.00445770
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fmul st(2)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
call fcn.00423c40
mov ecx, eax
mov dword [esp + 0x14], ecx
fisub dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
mov eax, ecx
jnp 0x4033ab
lea eax, [ecx + 1]
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x3c]
push 0
mov dword [edi], eax
mov eax, dword [esp + 0x44]
push 0x400
push eax
push ecx
call fcn.00445770
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
call fcn.00423c40
mov ecx, eax
mov dword [esp + 0x14], ecx
fisub dword [esp + 0x14]
fstp dword [esp + 0x14]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
mov eax, ecx
je 0x403403
lea eax, [ecx + 1]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [esi]
xor edx, edx
test eax, eax
setl dl
sub edx, 1
and eax, edx
mov dword [esi], eax
mov eax, dword [edi]
xor edx, edx
test eax, eax
setl dl
sub edx, 1
and eax, edx
mov dword [edi], eax
mov eax, dword [ecx]
xor edx, edx
test eax, eax
setl dl
mov dword [esp + 0x58], 0xffffffff
sub edx, 1
and eax, edx
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret