Function at 0x6f6c2250
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, 0x58
mov eax, dword [0x6f6c4104]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x6f6c2440
mov eax, dword [edx + 0x1c]
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x38], edx
mov edi, dword fs:[0x18]
add eax, 0x30
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x2c]
add eax, dword [edx + 0x24]
add eax, dword [edx + 0x34]
mov dword [esp + 4], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], edi
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov esi, eax
test ebx, ebx
je 0x6f6c253c
test eax, eax
je 0x6f6c253c
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 8]
mov edi, dword [edx + 0x1c]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x10], ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [edx + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [edx + 0x2c]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 4], ecx
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x30]
mov dword [esp], eax
mov dword [esp + 8], edi
call sym._memcpy
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x121004
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
mov edx, dword [ebp - 0x38]
sub esp, 0x20
test eax, eax
jne 0x6f6c2400
mov edi, dword [ebp - 0x3c]
mov edi, dword [edi + 0x34]
test edi, edi
je 0x6f6c2400
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword fs:[0x18]
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x6f6c24e0
lea ecx, [esi + eax]
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x6f6c250a
mov edi, dword [edx + 0x34]
test edi, edi
je 0x6f6c239f
mov edx, dword [edx + 0x30]
add eax, ecx
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._memcpy
jmp 0x6f6c239f
mov dword [ebp - 0x30], edx
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]
mov edx, dword [ebp - 0x30]
sub esp, 0x1c
cmp eax, 0xffffffff
mov ecx, eax
je 0x6f6c24af
mov eax, dword [ebp - 0x2c]
lock cmpxchg dword [0x6f6c4104], ecx
cmp eax, 0xffffffff
je 0x6f6c24af
mov dword [ebp - 0x2c], edx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
sub esp, 4
mov eax, dword [0x6f6c4104]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x6f6c2277
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 [edx + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ecx
mov dword [ebp - 0x2c], edx
call sym._memcpy
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x24]
lea ecx, [esi + eax]
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x6f6c2419
mov edi, dword [edx + 0x28]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
call sym._memcpy
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [edx + 0x34]
mov eax, dword [edx + 0x2c]
test edi, edi
je 0x6f6c239f
jmp 0x6f6c2424
mov edi, 0xe
jmp 0x6f6c239f