Function at 0x46dff8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp si, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
jbe 0x46e017
xor esi, esi
test ebx, ebx
jne 0x46e026
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea ebx, [ebp - 2]
push ebx
call fcn.00473714
pop ecx
mov edi, eax
mov ebx, eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x10], eax
cmp dword [0x5b8f40], 0
jne 0x46e085
call fcn.004f5b94
test eax, eax
je 0x46e054
mov edx, str.unicows.dll
jmp 0x46e059
mov edx, 0x5b8f5c
push edx
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46e07b
push str.GetDiskFreeSpaceExW
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b8f3c], eax
mov dword [0x5b8f40], 1
cmp dword [0x5b8f3c], 0
jne 0x46e187
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push ecx
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push edx
push ecx
push ebx
call sub.KERNEL32.DLL_GetDiskFreeSpaceW
test eax, eax
je 0x46e0b3
mov eax, 1
jmp 0x46e0b5
xor eax, eax
mov ebx, eax
push 0
push ebx
call fcn.00473ce8
add esp, 8
test ebx, ebx
je 0x46e295
mov edx, esi
sub dx, 2
jb 0x46e0dd
sub dx, 2
jb 0x46e113
jmp 0x46e295
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
fmulp st(1)
fild qword [ebp - 0x54]
fmulp st(1)
fstp qword [ebp - 0xc]
jmp 0x46e295
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
fmulp st(1)
cmp si, 2
fild qword [ebp - 0x54]
fmulp st(1)
fstp qword [ebp - 0xc]
jne 0x46e295
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
fmulp st(1)
fild qword [ebp - 0x54]
fmulp st(1)
fsubr qword [ebp - 0xc]
fstp qword [ebp - 0xc]
jmp 0x46e295
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x2c]
push edx
push ebx
call dword [0x5b8f3c]
mov ebx, eax
push 0
push ebx
call fcn.00473ce8
add esp, 8
test ebx, ebx
je 0x46e295
sub si, 1
jb 0x46e1ca
je 0x46e1f6
dec si
je 0x46e248
dec si
je 0x46e21f
jmp 0x46e295
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x44]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
fild qword [ebp - 0x4c]
fmul dword [0x46e2b4]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x46e295
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
fild qword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
fmul dword [0x46e2b4]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x46e295
mov edx, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
fild qword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
fild qword [ebp - 0x4c]
fmul dword [0x46e2b4]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x46e295
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
fild qword [ebp - 0x4c]
fmul dword [0x46e2b4]
faddp st(1)
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
fild qword [ebp - 0x54]
mov ecx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
fild qword [ebp - 0x5c]
fmul dword [0x46e2b4]
faddp st(1)
fsubp st(1)
fstp qword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.DLL_SetErrorMode
test edi, edi
je 0x46e2a9
push edi
call fcn.004aa6ac
pop ecx
fld qword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret