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

Disassembly:
mov eax, 0x429904
call fcn.0041e9a8
sub esp, 0x254
movzx eax, byte [esp + 0x270]
push ebx
mov ebx, ecx
push ebp
or dword [ebx + 4], 0xffffffff
xor ebp, ebp
mov dword [ebx], eax
mov eax, dword [esp + 0x274]
push esi
push edi
mov dword [esp + 0x4c], ebx
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ebp
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
call fcn.0040dc5f
mov edi, dword [esp + 0x284]
lea esi, [ebx + 0x28]
push edi
mov ecx, esi
mov dword [ebx + 0x24], eax
mov dword [esp + 0x54], esi
call fcn.00410ca3
mov dword [esp + 0x26c], ebp
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov dword [esp + 0x26c], 1
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x5c], ebp
mov word [ebx + 0x4c], ax
mov byte [esp + 0x26c], 2
mov dword [ebx + 0x64], ebp
mov dword [ebx + 0x68], ebp
mov dword [ebx + 0x6c], ebp
mov byte [esp + 0x26c], 3
mov dword [ebx + 0x70], ebp
mov dword [ebx + 0x74], ebp
mov dword [ebx + 0x78], ebp
mov byte [esp + 0x26c], 4
lea esi, [ebx + 0x1bc]
mov dword [ebx + 0x7c], ebp
mov dword [ebx + 0x1b8], ebp
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ebp
mov word [esi], ax
mov byte [esp + 0x26c], 5
lea ebp, [ebx + 0x1d4]
and dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
mov word [ebp], ax
mov byte [esp + 0x26c], 6
mov eax, dword [edi + 0x18]
xor edi, edi
push 0x40
mov dword [ebx + 0x1ec], eax
lea eax, [ebx + 0x80]
push edi
push eax
mov dword [ebx + 0x1f4], edi
call fcn.0041dbe0
add esp, 0xc
lea eax, [ebx + 0xc0]
push 0xf8
push edi
push eax
call fcn.0041dbe0
add esp, 0xc
call fcn.0040ddaa
test al, al
je 0x40e7da
push 0x10adc0de
jmp 0x40e7db
push edi
call dword [0x50fde4]
mov dword [ebx + 0x1f0], eax
mov eax, dword [ebx + 0x1ec]
test eax, eax
je 0x40e829
push 0x104
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [0x51095c]
test eax, eax
je 0x40e829
cmp word [esp + 0x54], di
jne 0x40e811
mov eax, edi
jmp 0x40e81c
lea eax, [esp + 0x54]
push eax
call fcn.0041da8d
pop ecx
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call fcn.0040266d
push 0x104
lea eax, [esp + 0x58]
push eax
push edi
call dword [0x51095c]
test eax, eax
je 0x40e861
cmp word [esp + 0x54], di
jne 0x40e849
mov eax, edi
jmp 0x40e854
lea eax, [esp + 0x54]
push eax
call fcn.0041da8d
pop ecx
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.0040266d
mov esi, dword [ebx + 0x44]
lea edi, [ebx + 0x70]
test esi, esi
je 0x40e8ea
mov eax, dword [esi]
test eax, eax
je 0x40e8ea
cmp byte [eax], 0xff
jne 0x40e87b
push 9
pop eax
jmp 0x40e882
push eax
call fcn.0041d950
pop ecx
push eax
push dword [esi]
lea ecx, [esp + 0x34]
call fcn.00410b10
mov byte [esp + 0x26c], 7
push eax
lea ecx, [esp + 0x14]
call fcn.00410b34
mov byte [esp + 0x26c], 8
mov eax, dword [esi + 4]
mov dword [esp + 0x28], eax
mov byte [esp + 0x26c], 9
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00410d99
mov byte [esp + 0x26c], 7
lea ecx, [esp + 0x10]
call fcn.00402217
mov byte [esp + 0x26c], 6
lea ecx, [esp + 0x2c]
call fcn.00402217
add esi, 8
jne 0x40e86b
push 0x434c84
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0xb
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00410eca
mov byte [esp + 0x26c], 0xc
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov byte [esp + 0x26c], 0xd
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00410d99
mov byte [esp + 0x26c], 0xb
lea ecx, [esp + 0x10]
call fcn.00402217
mov byte [esp + 0x26c], 6
lea ecx, [esp + 0x2c]
call fcn.00402217
push 0x434c94
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0xf
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00410eca
mov byte [esp + 0x26c], 0x10
mov dword [esp + 0x28], ebp
mov byte [esp + 0x26c], 0x11
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00410d99
mov byte [esp + 0x26c], 0xf
lea ecx, [esp + 0x10]
call fcn.00402217
mov byte [esp + 0x26c], 6
lea ecx, [esp + 0x2c]
call fcn.00402217
push 0x434ca4
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0x13
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00410eca
mov byte [esp + 0x26c], 0x14
mov dword [esp + 0x28], ebp
mov byte [esp + 0x26c], 0x15
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00410d99
mov byte [esp + 0x26c], 0x13
lea ecx, [esp + 0x10]
call fcn.00402217
mov byte [esp + 0x26c], 6
lea ecx, [esp + 0x2c]
call fcn.00402217
push 0x434cb8
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0x17
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00410eca
mov byte [esp + 0x26c], 0x18
mov dword [esp + 0x28], ebp
mov byte [esp + 0x26c], 0x19
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00410d99
mov byte [esp + 0x26c], 0x17
lea ecx, [esp + 0x10]
call fcn.00402217
mov byte [esp + 0x26c], 6
lea ecx, [esp + 0x2c]
call fcn.00402217
push 0x434ccc
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0x1b
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00410eca
mov byte [esp + 0x26c], 0x1c
mov dword [esp + 0x28], ebp
mov byte [esp + 0x26c], 0x1d
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00410d99
mov byte [esp + 0x26c], 0x1b
lea ecx, [esp + 0x10]
call fcn.00402217
mov byte [esp + 0x26c], 6
lea ecx, [esp + 0x2c]
call fcn.00402217
mov eax, dword [esp + 0x278]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x27c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, ebx
call fcn.0040ec1d
mov dword [ebx + 4], eax
or dword [esp + 0x26c], 0xffffffff
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10