Function at 0x42e844
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 0x42e863
xor esi, esi
test ebx, ebx
jne 0x42e872
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea ebx, [ebp - 2]
push ebx
call fcn.00433f60
pop ecx
mov edi, eax
mov ebx, eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x10], eax
cmp dword [0x5a608c], 0
jne 0x42e8d1
call fcn.004b5ee0
test eax, eax
je 0x42e8a0
mov edx, str.unicows.dll
jmp 0x42e8a5
mov edx, 0x5a60a8
push edx
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42e8c7
push str.GetDiskFreeSpaceExW
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5a6088], eax
mov dword [0x5a608c], 1
cmp dword [0x5a6088], 0
jne 0x42e9d3
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 0x42e8ff
mov eax, 1
jmp 0x42e901
xor eax, eax
mov ebx, eax
push 0
push ebx
call fcn.00434534
add esp, 8
test ebx, ebx
je 0x42eae1
mov edx, esi
sub dx, 2
jb 0x42e929
sub dx, 2
jb 0x42e95f
jmp 0x42eae1
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 0x42eae1
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 0x42eae1
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 0x42eae1
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x2c]
push edx
push ebx
call dword [0x5a6088]
mov ebx, eax
push 0
push ebx
call fcn.00434534
add esp, 8
test ebx, ebx
je 0x42eae1
sub si, 1
jb 0x42ea16
je 0x42ea42
dec si
je 0x42ea94
dec si
je 0x42ea6b
jmp 0x42eae1
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 [0x42eb00]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x42eae1
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 [0x42eb00]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x42eae1
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 [0x42eb00]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x42eae1
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 [0x42eb00]
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 [0x42eb00]
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 0x42eaf5
push edi
call fcn.0046af54
pop ecx
fld qword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret