Function at 0x4c077e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov edi, ecx
mov edx, str.VirtualDiskSize
push ebx
mov ecx, esi
mov dword [esp + 0x14], edi
push dword [edi + 0x7c]
push dword [edi + 0x78]
call fcn.004c0a76
push ebx
push dword [edi + 0x3c]
mov edx, str.PhysicalSize
mov ecx, esi
push dword [edi + 0x38]
call fcn.004c0a76
mov ebp, 0x579c84
cmp dword [edi + 0x114], ebx
je 0x4c07eb
push 0x57db58
mov ecx, esi
call fcn.00402a6d
push ebp
mov ecx, esi
call fcn.00402a6d
lea eax, [edi + 0x110]
mov ecx, esi
push eax
call fcn.00402a38
mov ecx, esi
call fcn.00402c82
cmp byte [edi + 0x60], bl
je 0x4c0817
push 0x587e84
mov ecx, esi
call fcn.00402a6d
push ebp
mov ecx, esi
call fcn.00402a6d
push esi
lea ecx, [edi + 0x80]
call fcn.0048441a
mov ecx, esi
call fcn.00402c82
push ebx
push dword [edi + 0xa4]
mov edx, str.SequenceNumber
mov ecx, esi
push dword [edi + 0xa0]
call fcn.004c0a76
push 1
push ebx
push dword [edi + 0xa8]
mov edx, str.LogLength
mov ecx, esi
call fcn.004c0a76
mov ebp, ebx
lea ecx, [edi + 0xb8]
shl ebp, 4
add ecx, ebp
call fcn.004c1519
test al, al
jne 0x4c08ab
test ebx, ebx
jne 0x4c0866
mov eax, str.FileWrite
jmp 0x4c0876
cmp ebx, 1
mov eax, str.DataWrite
mov ecx, 0x587ebc
cmovne eax, ecx
push eax
mov ecx, esi
call fcn.00402a6d
push str.Guid
mov ecx, esi
call fcn.00402a6d
push 0x579c84
mov ecx, esi
call fcn.00402a6d
lea ecx, [edi + 0xb8]
push esi
add ecx, ebp
call fcn.0048441a
mov ecx, esi
call fcn.00402c82
inc ebx
cmp ebx, 3
jb 0x4c0845
mov eax, dword [edi + 0x70]
mov edx, str.HasParent
shr eax, 1
mov ecx, esi
and al, 1
movzx eax, al
push eax
call fcn.004c0a4e
mov al, byte [edi + 0x70]
mov edx, str.Fixed
and al, 1
mov ecx, esi
movzx eax, al
push eax
call fcn.004c0a4e
test byte [edi + 0x70], 1
je 0x4c08f7
movzx eax, byte [edi + 0x129]
mov edx, str.DataContiguous
push eax
mov ecx, esi
call fcn.004c0a4e
push dword [edi + 0x64]
mov edx, str.BlockSize
mov ecx, esi
call fcn.004c0a1d
push dword [edi + 0x68]
mov edx, str.LogicalSectorSize
mov ecx, esi
call fcn.004c0a1d
push dword [edi + 0x6c]
mov edx, str.PhysicalSectorSize
mov ecx, esi
call fcn.004c0a1d
mov eax, dword [edi + 0xe8]
xor edx, edx
mov ecx, dword [edi + 0x64]
call fcn.00567120
mov ebp, edx
mov ebx, eax
push 1
push ebp
push ebx
mov edx, str.PackSize
mov ecx, esi
call fcn.004c0a76
mov eax, dword [edi + 0xec]
mov ecx, 0x100000
mul ecx
mov ecx, dword [esp + 0x18]
mov esi, eax
mov edi, edx
mov eax, dword [esp + 0x10]
mov edx, str.HeadersSize
push 1
add esi, dword [eax + 0xf0]
adc edi, dword [eax + 0xf4]
push edi
push esi
call fcn.004c0a76
mov eax, dword [esp + 0x10]
mov edx, str.FreeSpace
push 1
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
sub ecx, esi
sbb eax, edi
sub ecx, ebx
mov ebx, dword [esp + 0x1c]
sbb eax, ebp
push eax
push ecx
mov ecx, ebx
call fcn.004c0a76
mov ebp, dword [esp + 0x10]
xor edi, edi
cmp dword [ebp + 0x94], edi
je 0x4c0a15
push str.Parent:
mov ecx, ebx
call fcn.00402a6d
mov ecx, ebx
call fcn.00402c82
cmp dword [ebp + 0x94], edi
jbe 0x4c0a0e
mov eax, dword [ebp + 0x90]
mov ecx, ebx
push 0x57aaec
mov esi, dword [eax + edi*4]
call fcn.00402a6d
push esi
mov ecx, ebx
call fcn.00402a38
push 0x579c84
mov ecx, ebx
call fcn.00402a6d
lea eax, [esi + 0xc]
mov ecx, ebx
push eax
call fcn.00402a38
mov ecx, ebx
call fcn.00402c82
inc edi
cmp edi, dword [ebp + 0x94]
jb 0x4c09ca
mov ecx, ebx
call fcn.00402c82
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4