Function at 0x422a00
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 0x422a1f
xor esi, esi
test ebx, ebx
jne 0x422a2e
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea ebx, [ebp - 2]
push ebx
call fcn.00427fb8
pop ecx
mov edi, eax
mov ebx, eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x10], eax
cmp dword [0x544744], 0
jne 0x422a8d
call fcn.004a4bbc
test eax, eax
je 0x422a5c
mov edx, str.unicows.dll
jmp 0x422a61
mov edx, 0x544760
push edx
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x422a83
push str.GetDiskFreeSpaceExW
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x544740], eax
mov dword [0x544744], 1
cmp dword [0x544740], 0
jne 0x422b8f
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 0x422abb
mov eax, 1
jmp 0x422abd
xor eax, eax
mov ebx, eax
push 0
push ebx
call fcn.00428588
add esp, 8
test ebx, ebx
je 0x422c9d
mov edx, esi
sub dx, 2
jb 0x422ae5
sub dx, 2
jb 0x422b1b
jmp 0x422c9d
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 0x422c9d
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 0x422c9d
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 0x422c9d
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x2c]
push edx
push ebx
call dword [0x544740]
mov ebx, eax
push 0
push ebx
call fcn.00428588
add esp, 8
test ebx, ebx
je 0x422c9d
sub si, 1
jb 0x422bd2
je 0x422bfe
dec si
je 0x422c50
dec si
je 0x422c27
jmp 0x422c9d
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 [0x422cbc]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x422c9d
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 [0x422cbc]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x422c9d
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 [0x422cbc]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x422c9d
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 [0x422cbc]
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 [0x422cbc]
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 0x422cb1
push edi
call fcn.0045c528
pop ecx
fld qword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret