Function at 0x77c9690a
Capabilities:
Check for peb beingdebugged flag
Get common file path
Get disk size

Disassembly:
cmp dword [ebp + 0x14], ebx
je 0x77c96957
jmp 0x77cd4588
cmp dword [ebp - 0x210], 0xfffcdfff
ja 0x77c85b1f
add dword [ebp - 0x210], 0x32000
jmp 0x77c969ec
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x210]
jmp 0x77c96ac6
push 0x70
jmp 0x77cd4631
cmp eax, 2
je 0x77c96957
jmp 0x77c96ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77c96ace
push 0x57
jmp 0x77cd4631
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x77c96ae0
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], esi
call fcn.77c968b1
test eax, eax
jge 0x77cd4575
push ebx
xor ebx, ebx
cmp esi, ebx
jne 0x77c85a37
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x77c85b34
cmp eax, 2
jb 0x77c85b3f
mov edi, dword [ebp + 0xc]
cmp edi, 2
jb 0x77c85b3f
mov eax, dword [ebp - 0x214]
cmp word [eax + 2], 0x3a
jne 0x77c969ec
cmp word [ebp - 0x20a], 0x3a
jne 0x77c969ec
push 1
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.ntdll.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x77c969ec
cmp dword [ebp + 0x18], ebx
jne 0x77c85af3
cmp dword [ebp - 0x210], 0xffffff37
ja 0x77c85b1f
add dword [ebp - 0x210], 0xc8
cmp dword [ebp - 0x210], ebx
je 0x77c96acc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [edi + edi + 2]
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x77cd45f9
push dword [ebp - 0x214]
lea eax, [edi + 1]
push eax
push esi
call fcn.77c9e187
lea eax, [edi - 1]
cmp eax, ebx
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
jl 0x77cd45fd
movzx ecx, word [esi + eax*2]
cmp cx, 0x5c
je 0x77c96b54
cmp cx, 0x2f
je 0x77c96b54
dec eax
jns 0x77c96a3c
cmp eax, ebx
jl 0x77cd45fd
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x77cd4614
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov ebx, ecx
mov edx, eax
shrd ebx, edx, 0x14
shrd ecx, eax, 0xa
shr edx, 0x14
shr eax, 0xa
test esi, esi
mov dword [ebp - 0x214], ecx
je 0x77c96ab6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
cmp dword [ebp + 0x18], 0
jne 0x77c85b0e
cmp ebx, dword [ebp - 0x210]
jb 0x77c85b1f
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.77cc744e
leave
ret 0x14
mov word [esi + eax*2], bx
jmp 0x77c96a57
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x77c96acf
lea eax, [ebp - 0x24c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x77cd45ee
push 1
push ebx
push ebx
push dword [ebp - 0x230]
call fcn.77c9e322
mov ecx, dword [ebp - 0x22c]
xor edi, edi
add eax, ecx
adc edx, edi
mov ecx, eax
mov edi, edx
shrd ecx, edi, 0x14
shrd eax, edx, 0xa
shr edi, 0x14
shr edx, 0xa
cmp dword [ebp + 0x18], ebx
jne 0x77cd45d9
cmp ecx, esi
jae 0x77c85b1f
sub esi, ecx
jmp 0x77cd45e3
cmp eax, esi
jae 0x77c85b1f
sub esi, eax
mov dword [ebp - 0x210], esi
jmp 0x77c96957
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77c85b26
push 8
jmp 0x77cd4631
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
xor esi, esi
jmp 0x77c96a5f
cmp esi, ebx
je 0x77c85b34
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
jmp 0x77c85b34
pop eax
jmp 0x77c96ace