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

Disassembly:
mov eax, 0x429f06
call fcn.0041efb8
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.0040e26b
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.004112af
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.0041e1f0
add esp, 0xc
lea eax, [ebx + 0xc0]
push 0xf8
push edi
push eax
call fcn.0041e1f0
add esp, 0xc
call fcn.0040e3b6
test al, al
je 0x40ede6
push 0x10adc0de
jmp 0x40ede7
push edi
call dword [0x522028]
mov dword [ebx + 0x1f0], eax
mov eax, dword [ebx + 0x1ec]
test eax, eax
je 0x40ee35
push 0x104
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [0x5216f8]
test eax, eax
je 0x40ee35
cmp word [esp + 0x54], di
jne 0x40ee1d
mov eax, edi
jmp 0x40ee28
lea eax, [esp + 0x54]
push eax
call fcn.0041e09d
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 [0x5216f8]
test eax, eax
je 0x40ee6d
cmp word [esp + 0x54], di
jne 0x40ee55
mov eax, edi
jmp 0x40ee60
lea eax, [esp + 0x54]
push eax
call fcn.0041e09d
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 0x40eef6
mov eax, dword [esi]
test eax, eax
je 0x40eef6
cmp byte [eax], 0xff
jne 0x40ee87
push 9
pop eax
jmp 0x40ee8e
push eax
call fcn.0041df60
pop ecx
push eax
push dword [esi]
lea ecx, [esp + 0x34]
call fcn.0041111c
mov byte [esp + 0x26c], 7
push eax
lea ecx, [esp + 0x14]
call fcn.00411140
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.004113a5
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 0x40ee77
push 0x435da8
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0xb
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.004114d6
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.004113a5
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 0x435db8
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0xf
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.004114d6
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.004113a5
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 0x435dc8
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0x13
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.004114d6
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.004113a5
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 0x435ddc
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0x17
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.004114d6
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.004113a5
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 0x435df0
lea ecx, [esp + 0x30]
call fcn.004021ea
mov byte [esp + 0x26c], 0x1b
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.004114d6
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.004113a5
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.0040f229
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