Function at 0x6f6c1d20
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov ebx, dword [ecx]
mov ecx, dword [0x6f6c4104]
cmp ecx, 0xffffffff
je 0x6f6c1ed0
mov edx, dword [ebx + 0x24]
add edx, dword [ebx + 0x1c]
mov dword [ebp - 0x60], ecx
add edx, dword [ebx + 0x2c]
add edx, dword [ebx + 0x34]
imul edx, dword [ebx + 0x38]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
add edx, 4
mov dword [esp + 8], edx
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x5c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6f6c2005
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x48], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x44], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x1c], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x54]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x14], edx
mov ecx, dword [ebp - 0x60]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], eax
mov dword [esp + 4], 0x121000
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
je 0x6f6c1eb0
xor edi, edi
mov eax, dword [esi]
lea ecx, [esi + 4]
mov dword [ebp - 0x5c], eax
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x6f6c1fe0
mov edx, dword [ebp - 0x1c]
imul eax, edx
add ecx, eax
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x6f6c1fb8
imul eax, edx
add eax, ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x6f6c1f90
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x60], ecx
test ecx, ecx
jne 0x6f6c1f60
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov edi, dword [edi + 0x34]
test edi, edi
je 0x6f6c1e2d
cmp edi, 0xea
jne 0x6f6c1e77
jmp 0x6f6c1e2d
mov dword [ebp - 0x5c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], str..Nsi
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edx, eax
cmp eax, 0xffffffff
je 0x6f6c1f38
mov ecx, dword [ebp - 0x5c]
mov eax, ecx
lock cmpxchg dword [0x6f6c4104], edx
cmp eax, 0xffffffff
je 0x6f6c1f38
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov ecx, dword [0x6f6c4104]
cmp ecx, 0xffffffff
jne 0x6f6c1d45
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov ecx, dword [ebx + 0x30]
imul eax, edx
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x60]
imul ecx, dword [ebx + 0x38]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x64]
mov dword [esp], ecx
call sym._memcpy
jmp 0x6f6c1e77
imul eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x28]
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], eax
call sym._memcpy
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebp - 0x1c]
jmp 0x6f6c1e69
imul eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x20]
mov dword [esp + 4], ecx
mov dword [ebp - 0x5c], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebx + 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x5c]
jmp 0x6f6c1e56
imul eax, dword [ebp - 0x5c]
mov edx, dword [ebx + 0x18]
mov dword [esp + 4], ecx
mov dword [ebp - 0x5c], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x5c]
jmp 0x6f6c1e43
mov edi, 0xe
jmp 0x6f6c1e9b