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

Disassembly:
cmp dword [ebp + 0x14], edi
je 0x77c9fec4
jmp 0x77ce2f7e
cmp dword [ebp - 0x210], 0xfffcdfff
ja 0x77c93474
add dword [ebp - 0x210], 0x32000
jmp 0x77c9ff54
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x210]
jmp 0x77ca002c
push 0x70
jmp 0x77ce302a
cmp eax, 2
je 0x77c9fec4
jmp 0x77ca0034
push 0x57
jmp 0x77ce302a
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x210], esi
jne 0x77c933f3
push 0x208
lea eax, [ebp - 0x20c]
push 0
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]
test eax, eax
je 0x77ce2fee
cmp eax, 2
jb 0x77c93489
mov edi, dword [ebp + 0xc]
cmp edi, 2
jb 0x77c93489
cmp word [ebx + 2], 0x3a
jne 0x77c9ff54
cmp word [ebp - 0x20a], 0x3a
jne 0x77c9ff54
push 1
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ntdll.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x77c9ff54
cmp dword [ebp + 0x18], eax
jne 0x77c93448
cmp dword [ebp - 0x210], 0xffffff37
ja 0x77c93474
add dword [ebp - 0x210], 0xc8
cmp dword [ebp - 0x210], 0
je 0x77ca0032
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
test esi, esi
je 0x77ce2ff9
push ebx
lea eax, [edi + 1]
push eax
push esi
call fcn.77cac425
lea eax, [edi - 1]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
cmp eax, ebx
jl 0x77ce2ffd
movzx ecx, word [esi + eax*2]
cmp cx, 0x5c
je 0x77ca0045
cmp cx, 0x2f
je 0x77ca0045
dec eax
jns 0x77c9ffa2
cmp eax, ebx
jl 0x77ce2ffd
push ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x77ce3014
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x21c]
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 0x77ca001c
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 0x77c93463
cmp ebx, dword [ebp - 0x210]
jb 0x77c93474
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0x14
mov word [esi + eax*2], bx
jmp 0x77c9ffbd
lea eax, [ebp - 0x248]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x77ce2fe3
push 1
push edi
push edi
push dword [ebp - 0x22c]
call fcn.77cb0191
mov ecx, dword [ebp - 0x228]
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], 0
jne 0x77ce2fce
cmp ecx, esi
jae 0x77c93474
sub esi, ecx
jmp 0x77ce2fd8
cmp eax, esi
jae 0x77c93474
sub esi, eax
mov dword [ebp - 0x210], esi
jmp 0x77c9fec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77c9347b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77ca0034
push 8
jmp 0x77ce302a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
xor esi, esi
jmp 0x77c9ffc5
cmp esi, ebx
je 0x77ce2fee
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
jmp 0x77ce2fee
pop eax
jmp 0x77ca0034