Function at 0x103e8f9
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [fcn.0100168c]
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
push dword [ebx + 0x1073434]
lea eax, [ebp - 0x28]
push eax
call esi
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [0x1001754]
test eax, eax
je 0x103e970
add ebx, 4
cmp ebx, 4
jb 0x103e91c
mov esi, 0xc0000034
cmp esi, edi
jge 0x103ea15
cmp esi, 0xc0000034
je 0x103ea09
cmp esi, 0xc000003a
je 0x103ea09
mov eax, esi
jmp 0x103ebe7
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov ebx, eax
call fcn.0103e841
pop ecx
lea eax, [eax + eax + 0x8e]
push eax
mov eax, dword [ebx + 0x30]
push edi
push dword [eax + 0x18]
call dword [fcn.01001600]
mov ebx, eax
cmp ebx, edi
je 0x103ebe2
push 0x10150c8
push ebx
call fcn.0103e7b0
push dword [ebp + 8]
push ebx
call fcn.0103e83b
add esp, 0x10
push ebx
lea eax, [ebp - 0x30]
push eax
call esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
push 0x20019
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call dword [fcn.01001690]
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [fcn.01001668]
jmp 0x103e949
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
jmp 0x103ebe7
mov esi, dword [0x1001750]
lea eax, [ebp - 8]
push eax
push edi
push edi
push 4
push dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call esi
cmp eax, 0xc0000023
jne 0x103eb81
mov eax, dword fs:[0x18]
push dword [ebp - 8]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [fcn.01001600]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 8], ebx
je 0x103ebe2
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push 4
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
mov esi, eax
call dword [fcn.010016c8]
cmp esi, edi
jl 0x103ebe2
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 1]
push eax
push ebx
call dword [fcn.010016a4]
test eax, eax
jl 0x103eb8a
cmp byte [ebp - 1], 0
je 0x103eb8a
push 2
push 0xc
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x10]
call dword [0x100174c]
cmp eax, edi
mov dword [ebp - 0x18], eax
jl 0x103eb8a
xor ebx, ebx
cmp dword [ebp - 0x3c], edi
jbe 0x103eb16
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x10]
xor esi, esi
call dword [0x1001748]
cmp eax, edi
mov dword [ebp - 0x18], eax
jl 0x103eb8a
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
test cl, cl
je 0x103eaef
cmp cl, 1
jne 0x103eb10
mov ecx, dword [eax + 4]
test ecx, 0x20019
je 0x103eaff
mov esi, 0x80000000
test ecx, 0x20006
je 0x103eb0d
or esi, 0x40000000
mov dword [eax + 4], esi
inc ebx
cmp ebx, dword [ebp - 0x3c]
jb 0x103eac6
mov eax, dword fs:[0x18]
push dword [ebp - 8]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [fcn.01001600]
mov ebx, eax
cmp ebx, edi
je 0x103eb8a
push 1
push ebx
call dword [fcn.0100109c]
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x10]
mov edx, ecx
lea eax, [ebx + 0x14]
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 0
push eax
mov ecx, edx
push 1
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [fcn.01001098]
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.01001668]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp - 0x18]
jmp 0x103ebe7
push dword [ebp - 0xc]
call dword [fcn.010016c8]
cmp dword [ebp + 8], edi
je 0x103eba5
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [fcn.01001668]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x14
push edi
push dword [eax + 0x18]
call dword [fcn.01001600]
mov esi, eax
cmp esi, edi
je 0x103ebe2
push 1
push esi
call dword [fcn.0100109c]
push edi
push edi
push 1
push esi
call dword [fcn.01001098]
test eax, eax
je 0x103ebe2
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x103ea0e
mov eax, 0xc0000017
pop edi
pop esi
pop ebx
leave
ret 8