Function at 0x4c4a87
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp byte [ebx + 0x12d1], 0
push edi
jne 0x4c4abe
cmp dword [ebp + 0xc], 0
jle 0x4c4ab7
push 0
push esi
call fcn.004c4a87
test al, al
je 0x4c4db0
mov byte [ebx + 0x12d1], 1
cmp byte [ebx + 0x1274], 0
jne 0x4c4db0
cmp dword [ebx + 0x124c], 0
je 0x4c4db0
cmp dword [ebx + 0x18], 0
je 0x4c4db0
mov edi, dword [ebx + 0x1260]
test edi, edi
je 0x4c4db0
cmp byte [esi + 0x20], 0
je 0x4c4b08
push dword [esi]
call fcn.00425136
test al, al
je 0x4c4b08
mov eax, dword [esi + 0x1c]
neg eax
jmp 0x4c4b0b
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x20], eax
mov eax, esi
lea edi, [ebp - 0x18]
call fcn.0045fe6c
mov ecx, edi
call fcn.0042590f
test al, al
je 0x4c4db0
mov eax, dword [ebx + 0x1260]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
push dword [esi]
call fcn.0042511f
test al, al
je 0x4c4ba2
mov ecx, dword [esi + 0x21]
mov eax, dword [ebx + 0x1260]
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 0x25]
mov eax, dword [ebx + 0x1260]
mov edi, esi
lea esi, [ebp - 0x18]
mov dword [eax + 0x28], ecx
call fcn.0045ff26
mov ecx, esi
call fcn.0042590f
test al, al
je 0x4c4db0
mov eax, dword [ebx + 0x1260]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov dword [eax + 4], ecx
call fcn.0045ff74
mov ecx, esi
call fcn.0042590f
test al, al
je 0x4c4db0
mov eax, dword [ebx + 0x1260]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov esi, edi
cmp dword [ebx + 0x1538], 0x6c
mov edi, dword [ebx + 0x1260]
jne 0x4c4bcc
mov eax, dword [esi + 4]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x124c]
mov eax, dword [eax + 0x8c]
mov dword [edi + 0x50], eax
cmp dword [ebx + 0x1540], 1
jne 0x4c4bed
cmp dword [ebx + 0x1538], 0xd
jne 0x4c4bed
mov eax, dword [ebx + 0x1774]
imul eax, eax, 0x76
mov dword [edi + 0xa8], eax
mov ecx, dword [ebx + 0x1264]
test ecx, ecx
je 0x4c4c33
mov edx, dword [ebx + 0x1270]
test edx, edx
je 0x4c4db0
mov eax, dword [ebx + 0x1260]
lea esi, [ecx + 0x20]
push esi
mov esi, dword [ebx + 0x124c]
push dword [esi + 0x7c]
lea esi, [eax + 0x20]
push esi
push eax
push edx
mov edi, ecx
call fcn.00429e8a
test eax, eax
jl 0x4c4db0
mov edi, dword [ebx + 0x1264]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 8]
test byte [eax + 0x1c], 0x20
je 0x4c4c66
lea eax, [ebp - 0x70]
push eax
call fcn.00429ee3
mov eax, dword [ebx + 0x1254]
or dword [ebp - 0x4c], 1
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], 0x40
jmp 0x4c4d3f
mov eax, dword [ebx + 0x124c]
push dword [eax + 0x6c]
xor ecx, ecx
push dword [eax + 0x68]
mov eax, dword [ebp + 0xc]
mov edx, 0x3e8
push edx
inc ecx
cdq
push ecx
push edx
push eax
call fcn.00429ca9
push edi
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], edx
push dword [ebx + 0x125c]
push dword [ebx + 0x1258]
push dword [ebx + 0x124c]
call fcn.00429c53
cmp dword [ebx + 0x12f4], 1
mov esi, eax
je 0x4c4d4c
test esi, esi
jle 0x4c4d4c
lea eax, [ebp - 0x70]
push eax
call fcn.00429ee3
mov eax, dword [ebx + 0x124c]
mov ecx, dword [eax + 0x324]
test ecx, ecx
je 0x4c4d28
mov edx, dword [ecx + 0x88]
test edx, edx
mov edi, dword [ecx + 0x8c]
jne 0x4c4cf3
cmp edi, 0x80000000
je 0x4c4d12
mov ecx, dword [ebx + 0x1254]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [eax + 0x6c]
push dword [eax + 0x68]
push edi
push edx
call fcn.00429ca9
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov eax, dword [ebx + 0x124c]
mov eax, dword [eax + 0x324]
cmp dword [eax + 0x54], 0
je 0x4c4d28
or dword [ebp - 0x4c], 1
mov eax, dword [ebx + 0x1254]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x1258]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x70]
push eax
mov eax, ebx
call fcn.004c5253
jmp 0x4c4d4e
xor eax, eax
xor esi, esi
cmp eax, esi
je 0x4c4da5
lea edi, [ebx + 0xfdc]
mov ecx, edi
lea eax, [ebp - 0x280]
call fcn.00401963
cmp dword [ebx + 0x12f4], esi
jne 0x4c4da1
cmp word [edi], si
je 0x4c4da1
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4c4da1
cmp dword [ebp - 0x1c], esi
ja 0x4c4da1
jb 0x4c4db0
cmp dword [ebp - 0x20], 0x19000
jb 0x4c4db0
mov al, 1
jmp 0x4c4db2
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x12d4], eax
jmp 0x4c4da1
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8