Function at 0x42ce54
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff2c
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 0x42ce76
xor esi, esi
test ebx, ebx
jne 0x42ce85
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea ebx, [ebp - 2]
push ebx
call fcn.004325e4
pop ecx
mov edi, eax
mov ebx, eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x10], eax
cmp dword [0x59a854], 0
jne 0x42cee4
call fcn.004b6138
test eax, eax
je 0x42ceb3
mov edx, str.unicows.dll
jmp 0x42ceb8
mov edx, 0x59a870
push edx
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42ceda
push str.GetDiskFreeSpaceExW
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x59a850], eax
mov dword [0x59a854], 1
cmp dword [0x59a850], 0
jne 0x42cff1
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 0x42cf12
mov eax, 1
jmp 0x42cf14
xor eax, eax
mov ebx, eax
push 0
push ebx
call fcn.00432bb8
add esp, 8
test ebx, ebx
je 0x42d160
mov edx, esi
sub dx, 2
jb 0x42cf3c
sub dx, 2
jb 0x42cf72
jmp 0x42d160
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 0x42d160
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
fild qword [ebp - 0x5c]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], ecx
fild qword [ebp - 0x64]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
fmulp st(1)
cmp si, 2
fild qword [ebp - 0x6c]
fmulp st(1)
fstp qword [ebp - 0xc]
jne 0x42d160
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], eax
fild qword [ebp - 0x74]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], ecx
fild qword [ebp - 0x7c]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
fmulp st(1)
fild qword [ebp - 0x84]
fmulp st(1)
fsubr qword [ebp - 0xc]
fstp qword [ebp - 0xc]
jmp 0x42d160
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x2c]
push edx
push ebx
call dword [0x59a850]
mov ebx, eax
push 0
push ebx
call fcn.00432bb8
add esp, 8
test ebx, ebx
je 0x42d160
sub si, 1
jb 0x42d038
je 0x42d076
dec si
je 0x42d0ef
dec si
je 0x42d0b4
jmp 0x42d160
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], eax
fild qword [ebp - 0x8c]
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ecx
fild qword [ebp - 0x94]
fmul dword [0x42d180]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x42d160
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
fild qword [ebp - 0x9c]
mov ecx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], eax
fild qword [ebp - 0xa4]
fmul dword [0x42d180]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x42d160
mov edx, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], ecx
fild qword [ebp - 0xac]
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edx
fild qword [ebp - 0xb4]
fmul dword [0x42d180]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x42d160
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], eax
fild qword [ebp - 0xbc]
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], ecx
fild qword [ebp - 0xc4]
fmul dword [0x42d180]
faddp st(1)
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], edx
fild qword [ebp - 0xcc]
mov ecx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], eax
fild qword [ebp - 0xd4]
fmul dword [0x42d180]
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 0x42d174
push edi
call fcn.00469a8c
pop ecx
fld qword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret