Function at 0x1000d9a0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov dword [esp + 8], 0x10
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov dword [ebp - 0x10], eax
sub esp, 0xc
add eax, 8
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], eax
je 0x1000dcd0
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x1000dcd0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax], edx
test edi, edi
je 0x1000da1d
movzx eax, byte [edi + 3]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
movzx eax, bx
mov dword [esp + 4], 8
mov dword [ebp - 0x1c], eax
lea eax, [eax + edx + 0x50]
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x1000de90
mov eax, dword [ebp + 0x2c]
mov dword [ebx + 0x3c], 0
lea edx, [ebx + 0x50]
mov byte [ebx + 0x40], 0x20
mov dword [ebx + 0x38], eax
mov eax, 2
mov word [ebx], ax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 4], eax
mov eax, 2
mov word [ebx + 0x1c], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x20], eax
test edi, edi
je 0x1000dabd
movzx eax, byte [edi]
cmp byte [edi + 3], 3
mov esi, dword [edi + 4]
mov byte [ebx + 0x41], al
movzx eax, word [edi + 1]
mov word [ebx + 0x42], ax
movzx eax, byte [edi + 3]
ja 0x1000dca0
test eax, eax
jne 0x1000dd90
mov dword [ebx + 0x44], eax
mov eax, dword [ebp + 0x34]
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x48], edi
add eax, edx
mov edx, dword [ebp + 0x20]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000dc80
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
test esi, esi
je 0x1000dd28
mov esi, dword [ebp + 0x30]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x14], ecx
mov dword [esp + 0x24], esi
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x20], esi
mov esi, dword [ebp - 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x12100c
mov dword [esp + 0xc], edx
mov dword [esp + 8], sym._icmp_apc_routine_12
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ecx, dword [ebp - 0x14]
sub esp, 0x28
cmp eax, 0x103
mov esi, eax
je 0x1000dc28
test esi, esi
jne 0x1000ddb0
mov eax, dword [ebp + 0x2c]
xor edx, edx
xor esi, esi
movzx edi, word [eax + 0xe]
mov word [eax + 0xe], dx
test edi, edi
je 0x1000dd10
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1000dbb0
test ecx, ecx
je 0x1000dbb0
cmp esi, 0x103
setne byte [ebp - 0x14]
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
sub esp, 4
test ecx, ecx
je 0x1000dbb0
cmp byte [ebp - 0x14], 0
je 0x1000dc2a
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov ecx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], ecx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
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 ecx
sub esp, 0xc
test esi, esi
jne 0x1000dc53
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x30
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000dec5
cmp byte [ebp - 0x14], 0
jne 0x1000dec5
lea esi, [esi]
xor edi, edi
mov dword [esp + 8], ebx
mov esi, 0x103
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
mov dword [esp], esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
sub esp, 4
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ecx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x30
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1000ddd8
mov eax, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [eax]
jmp 0x1000daff
mov ecx, dword [esi]
lea edi, [ebx + 0x54]
and edi, 0xfffffffc
mov dword [ebx + 0x50], ecx
mov ecx, dword [esi + eax - 4]
mov dword [edx + eax - 4], ecx
mov ecx, edx
sub ecx, edi
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x44], eax
jmp 0x1000dabd
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0
xor edi, edi
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx + 0x34], 0x57
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x30
mov esi, dword [eax + 4]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], esi
mov esi, edi
jmp 0x1000db78
mov esi, dword [ebp + 0x30]
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], 0x12100c
mov dword [esp + 0x24], esi
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], esi
mov esi, dword [ebp - 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
sub esp, 0x28
mov esi, eax
cmp eax, 0x103
je 0x1000dd86
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x1000db61
xor edi, edi
jmp 0x1000dbb0
movzx ecx, byte [esi]
mov byte [ebx + 0x50], cl
test al, 2
je 0x1000daba
movzx ecx, word [esi + eax - 2]
mov word [edx + eax - 2], cx
jmp 0x1000daba
mov edi, dword [ebp + 0xc]
cmp esi, 0x103
setne byte [ebp - 0x14]
test edi, edi
jne 0x1000dc10
test ecx, ecx
je 0x1000dc10
xor edi, edi
jmp 0x1000db8d
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov ecx, eax
mov eax, dword [ebp + 0x30]
sub esp, 0x10
mov dword [esp + 4], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], 0x12100c
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ecx, dword [ebp - 0x14]
sub esp, 0x28
cmp eax, 0x103
mov esi, eax
jne 0x1000db59
mov dword [esp], ecx
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
sub esp, 8
test eax, eax
jne 0x1000db78
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 8]
jmp 0x1000db59
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0
xor edi, edi
mov dword [ebp - 0x10], ecx
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x10]
sub esp, 0xc
mov dword [ecx + 0x34], 0x2afe
jmp 0x1000dc6a
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x10]
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 edi
xor edi, edi
sub esp, 0xc
jmp 0x1000dc53