Function at 0x77c896a6
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0xa8]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0xb4], esi
mov dword [esi], ebx
call dword [sym.imp.RPCRT4.dll_RpcBindingToStringBindingW]
mov edi, dword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
push eax
call edi
cmp eax, ebx
jl 0x77c8976a
push ebx
push ebx
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push dword [ebp - 0xa8]
call dword [sym.imp.RPCRT4.dll_RpcStringBindingParseW]
push eax
call edi
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push eax
call edi
mov eax, dword [ebp - 0x94]
cmp eax, ebx
jl 0x77c8976a
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
je 0x77c89742
movzx ecx, word [eax]
cmp cx, bx
jne 0x77ccea33
mov edi, dword [ebp - 0x98]
mov esi, str.SystemLibraryDTC
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x9c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push eax
call dword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
mov eax, 0x40000006
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0xc
cmp cx, 0x5c
jne 0x77ccea41
inc eax
inc eax
cmp word [eax], 0x5c
je 0x77ccea39
push eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp word [ebp - 0xb0], 2
jne 0x77ccea96
mov eax, dword [ebp - 0xac]
cmp word [eax], 0x2e
jne 0x77ccea96
mov edi, dword [ebp - 0x98]
mov esi, str.SystemLibraryDTC
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
mov esi, 0x40000006
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push eax
call edi
mov eax, esi
jmp 0x77c8976a
push 0x77ccecc4
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x77ccecb8
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xcc]
add eax, ecx
add eax, dword [ebp - 0xb0]
movzx ecx, ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x94], ecx
movzx ecx, cx
push ecx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
mov dword [ebp - 0xa0], eax
jne 0x77cceaff
mov esi, 0xc000009a
jmp 0x77ccea7f
mov ax, word [ebp - 0x94]
mov word [ebp - 0xa2], ax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xa4]
push eax
mov word [ebp - 0xa4], bx
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push eax
call edi
push 0x90
lea eax, [ebp - 0xa4]
push 1
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe4]
push eax
push 0x100001
push esi
mov dword [ebp - 0xe4], 0x18
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd8], 0x40
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
push dword [ebp - 0xa0]
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, ebx
mov dword [ebp - 0xa0], ebx
jge 0x77ccebe1
mov dword [esi], ebx
mov eax, edi
jmp 0x77c8976a
push 0x44
lea eax, [ebp - 0x90]
push eax
push 0x24
lea eax, [ebp - 0x4c]
push eax
push 0x1401a3
lea eax, [ebp - 0xbc]
push eax
push ebx
push ebx
push ebx
push dword [esi]
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x44], 2
call dword [sym.imp.ntdll.dll_NtFsControlFile]
push 9
pop ecx
push ebx
push ebx
mov dword [ebp - 0x94], eax
push 0x24
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x1401ac
lea eax, [ebp - 0xbc]
push eax
push ebx
push ebx
push ebx
push dword [esi]
xor edi, edi
inc edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 6
call dword [sym.imp.ntdll.dll_NtFsControlFile]
cmp eax, 0x103
jne 0x77ccec62
push ebx
push edi
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp dword [ebp - 0x94], ebx
jge 0x77ccec7f
push dword [esi]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [esi], ebx
mov eax, dword [ebp - 0x94]
jmp 0x77c8976a
mov edi, dword [ebp - 0x98]
lea esi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
movsd dword es:[edi], dword [esi]
push 0x77d28294
push dword [ebp - 0x98]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp eax, 0x10
jne 0x77ccec74
mov esi, dword [ebp - 0xb4]
mov dword [ebp - 0x94], 0xc0000202
jmp 0x77ccec6a