Function at 0x39d3130
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x3a343fb
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], edx
call fcn.039efdc0
mov dword [esp + 0x138], 0
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.039364d0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
push esi
push edi
lea eax, [esp + 0x7c]
call fcn.039d3010
add esp, 0x14
mov dword [esp + 0x54], eax
test eax, eax
je 0x39d3315
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x30]
mov eax, dword [edx + 0x10]
push esi
mov esi, dword [0x3a5ff88]
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x20], eax
call esi
mov edx, dword [esp + 0x7c]
push edx
lea eax, [esp + 0x78]
push eax
call esi
push ebx
lea ecx, [esp + 0x5c]
push ecx
call esi
cmp dword [ebp + 0x1c], 0x10
jne 0x39d322d
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x39d3219
push eax
jmp 0x39d322f
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x70]
mov dword [esp + 0x24], ecx
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x28], edx
jmp 0x39d323a
push 0
lea eax, [esp + 0x28]
push eax
call esi
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
test eax, eax
je 0x39d324f
push eax
lea edx, [esp + 0x3c]
push edx
call esi
jmp 0x39d325d
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x38], eax
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
test eax, eax
je 0x39d3272
push eax
lea eax, [esp + 0x34]
push eax
call esi
jmp 0x39d3286
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x30], ecx
mov edx, dword [ebx + 0x84]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x39d329b
push eax
lea ecx, [esp + 0x48]
push ecx
call esi
jmp 0x39d32af
mov edx, dword [ebx + 0x88]
mov dword [esp + 0x44], edx
mov eax, dword [ebx + 0x8c]
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x8c]
push eax
push 0
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [0x3a60584]
mov esi, eax
xor edx, edx
cmp esi, edx
jge 0x39d3330
mov ecx, dword [esp + 0x14]
cmp ecx, edx
je 0x39d3307
mov eax, dword [0x3a56b80]
push eax
push str._Unable_to_create_process_parameters_for_VDM__
call fcn.039efdd0
push esi
call dword [0x3a5fe6c]
push eax
call dword [0x3a5fde0]
mov dword [esp + 0x138], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.039ef660
xor eax, eax
jmp 0x39d35c7
mov ecx, dword [esp + 0x1c]
test dword [ecx + 0x2c], 0x100
je 0x39d335b
mov eax, dword [ecx + 0x38]
mov esi, dword [esp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x3c]
mov esi, dword [esp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x40]
mov esi, dword [esp + 0x10]
mov dword [esi + 0x20], eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
mov dword [eax + 0x48], esi
mov eax, dword [ebp + 0x14]
je 0x39d3377
and eax, 0xffffffe7
or eax, 0x8000000
test al, 8
je 0x39d338b
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x10], 0xffffffff
jmp 0x39d342c
test al, 0x10
je 0x39d339f
mov eax, dword [esp + 0x10]
mov dword [eax + 0x10], 0xfffffffe
jmp 0x39d342c
test eax, 0x8000000
je 0x39d33b3
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x10], 0xfffffffd
jmp 0x39d342c
mov eax, dword [ebx + 0x10]
mov esi, dword [esp + 0x10]
mov dword [esi + 0x10], eax
test dword [ecx + 0x2c], 0x100
jne 0x39d342c
mov eax, dword [ebp + 0x18]
cmp eax, edx
jne 0x39d33db
mov ecx, dword [ebx + 0x18]
and ecx, 0x10000003
cmp ecx, 3
jne 0x39d33e9
mov ecx, dword [ebx + 0x18]
mov esi, dword [esp + 0x10]
mov dword [esi + 0x18], ecx
cmp eax, edx
jne 0x39d33f7
mov ecx, dword [ebx + 0x1c]
and ecx, 0x10000003
cmp ecx, 3
jne 0x39d3405
mov ecx, dword [ebx + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [esi + 0x1c], ecx
cmp eax, edx
jne 0x39d3412
mov eax, dword [ebx + 0x20]
and eax, 0x10000003
cmp eax, 3
jne 0x39d341c
mov ecx, dword [ebx + 0x20]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x10]
and ecx, 0x100
or dword [eax + 8], ecx
mov eax, dword [esp + 0x10]
mov dword [eax + 0x2c], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
push 4
push 0x1000
lea ecx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x30]
push edx
push edi
mov dword [esp + 0x68], eax
call dword [0x3a5fe4c]
mov ebx, eax
test ebx, ebx
jge 0x39d348a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x39d3479
mov eax, dword [0x3a56b80]
push eax
push str._Unable_to_allocate_memory_for_process_parameters_in_VDM__
call fcn.039efdd0
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x3a60580]
push ebx
jmp 0x39d3308
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
mov esi, dword [0x3a5fdf8]
push 0
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call esi
mov ebx, eax
test ebx, ebx
jge 0x39d34d3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x39d34c2
mov edx, dword [0x3a56b80]
push edx
push str._Unable_to_write_process_parameters_to_VDM__
call fcn.039efdd0
mov eax, dword [esp + 0x10]
push eax
call dword [0x3a60580]
push ebx
jmp 0x39d3308
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x3a60580]
mov ebx, dword [esp + 0x4c]
push 0
push 4
lea edx, [esp + 0x28]
push edx
lea eax, [ebx + 0x10]
push eax
push edi
call esi
mov dword [esp + 0x18], eax
test eax, eax
jge 0x39d3525
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x39d3517
mov edx, dword [0x3a56b80]
push edx
push str._Unable_to_set_process_parameters_in_VDMs_PEB__
call fcn.039efdd0
mov eax, dword [esp + 0x18]
push eax
call fcn.03973340
add esp, 4
jmp 0x39d3315
push 0
push 4
lea eax, [esp + 0x48]
push eax
lea ecx, [ebx + 0x1e8]
push ecx
push edi
mov dword [esp + 0x54], 0
call esi
mov dword [esp + 0x18], eax
test eax, eax
jge 0x39d355e
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x39d3517
mov edx, dword [0x3a56b80]
push edx
push str._Unable_to_set_ShimData_pointer_in_VDMs_PEB__
jmp 0x39d350e
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
push 0
sete al
push 4
lea ecx, [esp + 0x34]
push ecx
add ebx, 0xb4
push ebx
push edi
add eax, 2
mov dword [esp + 0x40], eax
call esi
mov esi, eax
test esi, esi
jge 0x39d35ae
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x39d35a0
mov edx, dword [0x3a56b80]
push edx
push str._Unable_to_set_ImageSubsystem_in_VDMs_PEB__
call fcn.039efdd0
push esi
call fcn.03973340
add esp, 4
jmp 0x39d3315
mov dword [esp + 0x138], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.039ef660
mov eax, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.03a00f6a
mov esp, ebp
pop ebp
ret