Function at 0x52ae2d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp byte [ebx + 0x10b5], 0
push edi
jne 0x52ae6e
xor edi, edi
cmp dword [ebp + 0x10], edi
jl 0x52ae65
jg 0x52ae55
cmp dword [ebp + 0xc], edi
jbe 0x52ae65
push edi
push edi
push esi
call fcn.0052ae2d
test al, al
je 0x52b22b
mov byte [ebx + 0x10b5], 1
jmp 0x52ae70
xor edi, edi
cmp byte [ebx + 0x1050], 0
jne 0x52b22b
cmp dword [ebx + 0x1028], edi
je 0x52b22b
cmp dword [ebx + 0x18], edi
je 0x52b22b
cmp dword [ebx + 0x103c], edi
je 0x52b22b
mov eax, esi
call fcn.004b78e4
test al, al
je 0x52aeb0
mov ecx, esi
call fcn.004b7854
cmp byte [esi + 0x20], 0
je 0x52aecc
push dword [esi]
call fcn.004484fe
test al, al
je 0x52aecc
mov ecx, esi
call fcn.004b78fa
neg eax
jmp 0x52aed3
mov ecx, esi
call fcn.004b78fa
mov ecx, dword [ebx + 0x103c]
mov dword [ecx + 0x20], eax
push edi
mov eax, esi
lea edi, [ebp - 0x1c]
call fcn.004b8aab
mov ecx, edi
call fcn.00448cdf
test al, al
je 0x52b22b
mov eax, dword [ebx + 0x103c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
push dword [esi]
call fcn.004484e7
test al, al
je 0x52b014
call fcn.004b7929
mov ecx, dword [ebx + 0x103c]
mov dword [ecx + 0x24], eax
call fcn.004b794a
mov ecx, dword [ebx + 0x103c]
mov dword [ecx + 0x28], eax
mov eax, esi
call fcn.004b6aa5
test al, al
jne 0x52af47
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jmp 0x52af87
mov eax, esi
call fcn.004b75a8
mov dword [ebp - 0x1c], eax
mov eax, esi
call fcn.004b75a8
test eax, eax
mov dword [ebp + 8], eax
je 0x52af74
mov ecx, esi
call fcn.004b8e93
mov edi, eax
call fcn.004b7929
dec edi
imul eax, edi
add eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
call fcn.004b7929
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.00448cdf
test al, al
je 0x52b22b
mov eax, dword [ebx + 0x103c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, esi
call fcn.004b6aa5
test al, al
jne 0x52afb9
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
jmp 0x52aff8
mov eax, esi
call fcn.004b75ff
mov dword [ebp - 0x1c], eax
mov eax, esi
call fcn.004b75ff
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x52afd5
xor eax, eax
jmp 0x52afea
mov ecx, esi
call fcn.004b8e93
mov edi, eax
call fcn.004b794a
dec edi
imul eax, edi
add eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
call fcn.004b794a
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], edi
call fcn.00448cdf
test al, al
je 0x52b22b
mov eax, dword [ebx + 0x103c]
mov dword [eax + 8], edi
cmp dword [ebx + 0x1320], 0x6c
mov edi, dword [ebx + 0x103c]
jne 0x52b03e
mov eax, dword [esi + 4]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x1028]
mov eax, dword [eax + 0x8c]
mov dword [edi + 0x50], eax
cmp dword [ebx + 0x1328], 1
jne 0x52b05f
cmp dword [ebx + 0x1320], 0xd
jne 0x52b05f
mov eax, dword [ebx + 0x155c]
imul eax, eax, 0x76
mov dword [edi + 0xa8], eax
mov ecx, dword [ebx + 0x1040]
test ecx, ecx
je 0x52b0a5
mov edx, dword [ebx + 0x104c]
test edx, edx
je 0x52b22b
mov eax, dword [ebx + 0x103c]
lea esi, [ecx + 0x20]
push esi
mov esi, dword [ebx + 0x1028]
push dword [esi + 0x7c]
lea esi, [eax + 0x20]
push esi
push eax
push edx
mov edi, ecx
call fcn.00453970
test eax, eax
jl 0x52b22b
mov edi, dword [ebx + 0x1040]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 8]
test byte [eax + 0x1c], 0x20
je 0x52b0d8
lea eax, [ebp - 0x6c]
push eax
call fcn.004539c9
mov eax, dword [ebx + 0x1030]
or dword [ebp - 0x48], 1
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], 0x40
jmp 0x52b1b1
mov eax, dword [ebx + 0x1028]
push dword [eax + 0x6c]
xor ecx, ecx
push dword [eax + 0x68]
mov edx, 0x3e8
push edx
inc ecx
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040733a
push edi
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], edx
push dword [ebx + 0x1038]
push dword [ebx + 0x1034]
push dword [ebx + 0x1028]
call fcn.004537e9
cmp dword [ebx + 0x10dc], 1
mov esi, eax
je 0x52b1be
test esi, esi
jle 0x52b1be
lea eax, [ebp - 0x6c]
push eax
call fcn.004539c9
mov eax, dword [ebx + 0x1028]
mov ecx, dword [eax + 0x324]
test ecx, ecx
je 0x52b19a
mov edx, dword [ecx + 0x88]
test edx, edx
mov edi, dword [ecx + 0x8c]
jne 0x52b165
cmp edi, 0x80000000
je 0x52b184
mov ecx, dword [ebx + 0x1030]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [eax + 0x6c]
push dword [eax + 0x68]
push edi
push edx
call fcn.0040733a
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov eax, dword [ebx + 0x1028]
mov eax, dword [eax + 0x324]
cmp dword [eax + 0x54], 0
je 0x52b19a
or dword [ebp - 0x48], 1
mov eax, dword [ebx + 0x1030]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x1034]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x6c]
push eax
mov eax, ebx
call fcn.0052b756
jmp 0x52b1c0
xor eax, eax
xor esi, esi
cmp eax, esi
je 0x52b217
lea edi, [ebx + 0xdb8]
mov ecx, edi
lea eax, [ebp - 0x27c]
call fcn.0040162b
cmp dword [ebx + 0x10dc], esi
jne 0x52b213
cmp word [edi], si
je 0x52b213
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x52b213
cmp dword [ebp + 0x10], esi
ja 0x52b213
jb 0x52b22b
cmp dword [ebp + 0xc], 0x19000
jb 0x52b22b
mov al, 1
jmp 0x52b22d
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x10b8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x10bc], eax
jmp 0x52b213
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc