Function at 0x402c22
Capabilities:
Get disk size

Disassembly:
push 0xc8
mov eax, 0x46e388
call fcn.00431db0
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x90], eax
test byte [0x48d11c], bl
jne 0x402c69
or dword [0x48d11c], ebx
and dword [ebp - 4], 0
push 0x478088
mov ecx, 0x48d100
call fcn.004036a3
push 0x470178
call fcn.0042f0c5
pop ecx
test byte [0x48d11c], 2
mov edi, 0x48d0e4
jne 0x402c98
or dword [0x48d11c], 2
push 0x477eb8
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004036a3
push 0x470169
call fcn.0042f0c5
pop ecx
and dword [ebp - 0x88], 0
push 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 7
call fcn.00403e67
lea esi, [ebp - 0x4c]
mov dword [ebp - 4], 2
call fcn.00401596
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x402ccb
lea eax, [ebp - 0x48]
add eax, 6
push eax
lea ecx, [ebp - 0x84]
call fcn.004036a3
mov esi, 0x477eb4
push esi
lea eax, [ebp - 0xb8]
push 0x48d100
push eax
mov byte [ebp - 4], 3
call fcn.00404868
push edi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 4
call fcn.004048af
add esp, 0x18
mov dword [ebp - 0x8c], eax
lea ebx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.0040156c
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x84]
call fcn.00403b54
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0xb8]
call fcn.00403f22
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x50], 7
call fcn.00403e67
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x402d6b
lea eax, [ebp - 0x48]
push 3
push eax
lea ecx, [ebp - 0x68]
call fcn.00403719
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x402d82
lea eax, [ebp - 0x64]
push ebx
push ebx
lea ecx, [ebp - 0x9c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp - 0x98], ebx
ja 0x402daa
cmp dword [ebp - 0x9c], 0x1400000
jb 0x402e74
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004036c5
push esi
lea eax, [ebp - 0xd4]
push 0x48d100
push eax
mov byte [ebp - 4], 7
call fcn.00404868
push edi
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 8
call fcn.004048af
add esp, 0x18
mov esi, eax
lea ebx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.0040156c
push 0xffffffffffffffff
xor edi, edi
push edi
push esi
mov ecx, ebx
call fcn.00403b54
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0xb8]
call fcn.00403f22
push edi
push esi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 7
call fcn.00403f22
mov eax, ebx
push eax
call fcn.004015da
pop ecx
test al, al
je 0x402e68
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x402e36
lea eax, [ebp - 0x2c]
push eax
call fcn.00412e8e
pop ecx
test eax, eax
je 0x402e68
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x402e4d
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x90]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, di
jne 0x402e53
mov dword [ebp - 0x88], esi
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.00403f22
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00403f22
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00403f22
mov eax, dword [ebp - 0x88]
call fcn.00431e33
ret