Function at 0x403350
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4479e0
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 [0x471d4c]
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.00402010
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x58], edi
call fcn.00402390
test al, al
jne 0x4033c5
push str.....
push 0x4557d0
lea eax, [esp + 0x1c]
push eax
call fcn.00405960
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
mov dword [esp + 0x24], eax
call fcn.00402010
add eax, 0x10
mov dword [esi], eax
call fcn.004032e0
add esp, 4
cmp eax, 1
jne 0x403496
mov edx, dword [0x4641b8]
mov eax, dword [edx + 0xc]
mov ecx, 0x4641b8
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov byte [esp + 0x58], 1
call fcn.00402d00
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x403439
xor ecx, ecx
lea eax, [esp + 0x10]
call fcn.00401fc0
mov esi, dword [esp + 0x10]
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
mov dword [esp + 0x40], edi
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x3c], edx
mov ebx, ecx
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403496
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fild qword [esp + 0x34]
fld qword [0x456370]
fmul st(1), st(0)
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
call fcn.004242f0
mov ecx, eax
mov dword [esp + 0x14], ecx
fisub dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x456388]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
mov eax, ecx
je 0x4034dd
lea eax, [ecx + 1]
mov esi, dword [ebp + 8]
push 0
push 0x400
push ebx
push edi
mov dword [esi], eax
call fcn.00445e90
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fmul st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
call fcn.004242f0
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 0x40352d
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [ebp + 0xc]
push 0
push 0x400
push ecx
push edx
mov dword [edi], eax
call fcn.00445e90
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
call fcn.004242f0
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 0x403585
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]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035df
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