Function at 0x4212e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bf80
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 eax, dword [esi + 4]
dec eax
cmp eax, 5
ja case.0x421321.4
jmp dword [eax*4 + 0x42165c]
sub esp, 0x18
mov ecx, esp
push 0x5b075c
call fcn.0042a4c0
push esi
call fcn.00421680
test al, al
jne case.0x421321.4
xor al, al
jmp 0x421425
cmp dword [0x5c542c], 0
je case.0x421321.4
cmp byte [0x5c91ac], 0
mov bl, 1
jne 0x4213ca
lea ecx, [ebp - 0xc4]
call fcn.00420960
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00420d10
test al, al
je 0x42139d
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 0x4213ca
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 case.0x421321.4
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push 0x5b0770
call fcn.0042a4c0
push esi
call fcn.00421680
test al, al
je 0x421443
push 0
call fcn.00420d10
test al, al
jne 0x421402
cmp byte [0x5c91ac], al
jne case.0x421321.4
call fcn.00429020
push 0x5b0784
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x10
mov byte [0x5c91ad], 1
mov al, 1
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
push 0x5b07b8
push 1
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 0x4214a9
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, edx
or eax, ecx
je 0x4214a9
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
xor al, al
jmp 0x421425
cmp dword [0x5c542c], 0
je 0x421569
cmp byte [0x5c91ac], 0
mov bl, 1
jne 0x42159d
lea ecx, [ebp - 0xc4]
call fcn.00420960
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00420d10
test al, al
je 0x42153d
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
cmp eax, 2
je 0x42153b
cmp eax, 3
jne 0x42153d
xor bl, bl
lea ecx, [ebp - 0xc4]
call fcn.004211c0
test bl, bl
je 0x42159d
sub esp, 0xc
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.0042a1a0
push 3
call dword [0x5c542c]
add esp, 0x10
test al, al
jne 0x42159d
push 0x5b07f4
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 4
mov byte [esi + 0x74], 0
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.0042a1a0
push 5
call dword [0x5c542c]
add esp, 0x10
cmp byte [esi + 0x74], 0
je 0x4214c2
sub esp, 0x18
mov ecx, esp
push 0x5b0814
call fcn.0042a4c0
push esi
call fcn.00421680
test al, al
je 0x421626
push 0
call fcn.00420d10
test al, al
jne 0x4215f7
cmp byte [0x5c91ac], al
jne 0x4215f7
push 0x1b1
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 0x421607
push 0x1b6
jmp 0x4215d8
push 0x5b083c
push 0
push 0x5b063c
call fcn.00436780
push eax
call fcn.004367d0
add esp, 0x10
jmp case.0x421321.4
cmp byte [esi + 0x74], 0
je 0x4214c2
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 0x4214a9
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
jmp 0x42147e