Function at 0x47225c
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 0x47227e
xor esi, esi
test ebx, ebx
jne 0x47228d
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea ebx, [ebp - 2]
push ebx
call fcn.004779ec
pop ecx
mov edi, eax
mov ebx, eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x10], eax
cmp dword [0x5ac904], 0
jne 0x4722ec
call fcn.004caff4
test eax, eax
je 0x4722bb
mov edx, str.unicows.dll
jmp 0x4722c0
mov edx, 0x5ac920
push edx
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4722e2
push str.GetDiskFreeSpaceExW
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5ac900], eax
mov dword [0x5ac904], 1
cmp dword [0x5ac900], 0
jne 0x4723f9
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 0x47231a
mov eax, 1
jmp 0x47231c
xor eax, eax
mov ebx, eax
push 0
push ebx
call fcn.00477fc0
add esp, 8
test ebx, ebx
je 0x472568
mov edx, esi
sub dx, 2
jb 0x472344
sub dx, 2
jb 0x47237a
jmp 0x472568
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 0x472568
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 0x472568
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 0x472568
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x2c]
push edx
push ebx
call dword [0x5ac900]
mov ebx, eax
push 0
push ebx
call fcn.00477fc0
add esp, 8
test ebx, ebx
je 0x472568
sub si, 1
jb 0x472440
je 0x47247e
dec si
je 0x4724f7
dec si
je 0x4724bc
jmp 0x472568
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 [0x472588]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x472568
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 [0x472588]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x472568
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 [0x472588]
faddp st(1)
fstp qword [ebp - 0xc]
jmp 0x472568
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 [0x472588]
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 [0x472588]
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 0x47257c
push edi
call fcn.00455a78
pop ecx
fld qword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret