Function at 0x421ff2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c030
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc8], esi
mov eax, dword [esi + 4]
dec eax
cmp eax, 5
ja case.0x421f87.4
jmp dword [eax*4 + 0x42230c]
sub esp, 0x18
mov ecx, esp
push 0x5b0a58
call fcn.0042a4c0
push esi
call fcn.00422330
test al, al
jne 0x421fc6
push 0x5b0a68
push 1
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x10
jmp 0x4222ec
call fcn.00420d70
test al, al
je 0x42224b
push 0x5b0a84
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x10
call fcn.00429020
mov dword [ebp - 4], 0
cmp dword [0x5c542c], 0
je 0x42224b
cmp byte [0x5c91ac], 0
jne 0x422031
sub esp, 0xc
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.0042a1a0
push dword [esi + 4]
call dword [0x5c542c]
add esp, 0x10
test al, al
je 0x42224b
sub esp, 0x18
mov ecx, esp
push 0x5b0ab8
call fcn.0042a4c0
push esi
call fcn.00422330
test al, al
je 0x422081
cmp byte [0x5c91ac], 0
je 0x421fed
cmp dword [esi + 4], 6
je 0x421fed
push 0x5b0ac8
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
mov byte [0x5c91ad], 1
add esp, 0x10
mov al, 1
jmp 0x4222ee
push 0x5b0ae4
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x5b1414
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4220e7
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, edx
or eax, ecx
je 0x4220e7
shrd edx, ecx, 0xa
shr ecx, 0xa
push ecx
push edx
push ecx
push edx
push str._d__d
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x20
sub esp, 0xc
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.0042a1a0
push 4
call dword [0x5c542c]
add esp, 0x10
jmp 0x4222ec
cmp dword [0x5c542c], 0
je 0x4221c8
cmp byte [0x5c91ac], 0
mov bl, 1
jne 0x4221c8
lea ecx, [ebp - 0xc4]
call fcn.00420960
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00420cb0
test al, al
je 0x422183
mov eax, dword [ebp - 0xc8]
xor ecx, ecx
movzx ebx, bl
cmp dword [eax + 4], 2
cmove ebx, ecx
lea ecx, [ebp - 0xc4]
call fcn.004211c0
test bl, bl
je 0x4221c8
sub esp, 0xc
lea edi, [esi + 0x68]
mov ecx, esp
push edi
call fcn.0042a1a0
push 3
call dword [0x5c542c]
add esp, 0x10
test al, al
jne 0x4221c8
sub esp, 0xc
mov byte [esi + 0x74], al
mov ecx, esp
push edi
call fcn.0042a1a0
push 5
call dword [0x5c542c]
add esp, 0x10
cmp byte [esi + 0x74], 0
je 0x4222ec
sub esp, 0x18
mov ecx, esp
push 0x5b0ab8
call fcn.0042a4c0
push esi
call fcn.00422330
test al, al
je 0x422252
cmp byte [0x5c91ac], 0
jne 0x422221
call fcn.00420e00
test al, al
jne 0x422221
push 0x29e
push str.RelaunchProgram__d
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x14
call fcn.00429020
cmp byte [0x5c91ad], 0
je 0x422231
push 0x2a3
jmp 0x422202
push str.Danger
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x10
mov al, 1
jmp 0x4222ee
cmp byte [esi + 0x74], 0
je 0x4222ec
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x5b1414
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4220e7
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
jmp 0x4220bc
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5c9840]
cmp eax, dword [ecx + 4]
jle 0x4222d0
push 0x5c9840
call fcn.0053357d
add esp, 4
cmp dword [0x5c9840], 0xffffffff
jne 0x4222d0
call fcn.004366f0
push 0x560310
call fcn.00533907
add esp, 4
push 0x5c9840
call fcn.0053353e
add esp, 4
push dword [esi + 4]
push 0x5b0b38
push 1
push 0x5b063c
push 0x5c9848
call fcn.004367d0
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0053342f
mov esp, ebp
pop ebp
ret 4