Function at 0x49d0f2
Capabilities:
Get process heap force flags

Disassembly:
xor ebx, ebx
jmp 0x49d120
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x14], 1
jne 0x49d240
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0x24], 0
jne 0x4a8b2a
xor ebx, ebx
cmp dword [ebp + 0x18], 1
jne 0x49d23d
test byte [edi + 0x2d], 8
jne 0x4b2fb4
push edi
call fcn.00411430
or byte [edi + 0x2e], 4
cmp dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x2c]
je 0x49d15a
test al, 2
je 0x49d15a
xor eax, eax
inc eax
lea ecx, [edi + 0x44]
xchg dword [ecx], eax
test eax, eax
jne 0x51432f
mov ecx, edi
call fcn.0040306b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x1c], 1
mov byte [ebp - 0x1a], 4
mov dword [ebp - 0x18], ebx
mov dword [edi + 0x60], ebx
movsx eax, byte [eax + 0x30]
push eax
call fcn.0041b896
mov esi, eax
mov dword [esi + 0x64], edi
mov eax, dword fs:[0x124]
mov dword [esi + 0x50], eax
lea eax, [ebp - 0x1c]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x60]
sub eax, 0x24
mov byte [esi + 0x20], 0
mov dword [esi + 0x30], ebx
mov dword [esi + 8], 0x404
mov cl, 1
mov byte [eax], 0x12
mov dword [eax + 0x18], edi
call dword [fcn.0040102c]
mov edx, dword [esi + 0x50]
add edx, 0x210
mov ecx, dword [edx]
lea ebx, [esi + 0x10]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ecx + 4], ebx
mov cl, al
mov dword [edx], ebx
call dword [fcn.00401030]
call fcn.0041b7b6
mov ecx, dword [ebp + 0xc]
mov edx, esi
call fcn.0040a3b9
cmp eax, 0x103
je 0x51b0d3
mov cl, 1
call dword [fcn.0040102c]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [ecx], edx
mov dword [edx + 4], ecx
mov cl, al
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
call dword [fcn.00401030]
push esi
call fcn.00413f62
xor eax, eax
cmp dword [ebp + 8], eax
je 0x49d23d
test byte [edi + 0x2c], 2
je 0x49d23d
xor ecx, ecx
lea edx, [edi + 0x44]
xchg dword [edx], ecx
cmp dword [edi + 0x40], eax
jne 0x4b6c79
mov ecx, edi
call fcn.0040a930
pop edi
pop esi
pop ebx
leave
ret 0x14
cmp dword [ebp + 0x18], 1
je 0x49c9bd
test byte [edi + 0x2d], 8
jne 0x51b05d
push edi
call fcn.00411430
mov esi, eax
mov dword [ebp + 0xc], esi
test byte [edi + 0x2c], 2
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 4], ecx
je 0x4a8b72
xor eax, eax
inc eax
lea ecx, [edi + 0x44]
xchg dword [ecx], eax
test eax, eax
jne 0x51b0ae
mov ecx, edi
call fcn.0040306b
mov ecx, dword [ebp - 4]
xor ebx, ebx
cmp ecx, ebx
je 0x4a8b81
cmp dword [ecx + 0x20], ebx
jne 0x51b06f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov byte [ebp - 0x1c], 1
mov byte [ebp - 0x1a], 4
mov dword [ebp - 0x18], ebx
mov dword [edi + 0x60], ebx
mov al, byte [esi + 0x30]
push eax
call fcn.0041b896
mov esi, eax
mov dword [esi + 0x64], edi
mov eax, dword fs:[0x124]
mov dword [esi + 0x50], eax
lea eax, [ebp - 0x1c]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x60]
sub eax, 0x24
mov byte [esi + 0x20], 0
mov dword [esi + 8], 4
mov dword [esi + 0x30], ebx
mov ecx, edi
mov byte [eax], 0x11
mov byte [eax + 1], 3
mov dword [eax + 0x18], edi
call fcn.0040306b
mov cl, 1
call dword [fcn.0040102c]
mov edx, dword [esi + 0x50]
lea ecx, [esi + 0x10]
add edx, 0x210
mov byte [ebp + 0x17], al
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [eax + 4], ecx
mov dword [edx], ecx
mov cl, byte [ebp + 0x17]
call dword [fcn.00401030]
mov ecx, dword [ebp + 0xc]
mov edx, esi
call fcn.0040a3b9
cmp eax, 0x103
je 0x51b086
test byte [edi + 0x2c], 2
je 0x49d116
xor eax, eax
lea ecx, [edi + 0x44]
xchg dword [ecx], eax
cmp dword [edi + 0x40], ebx
jne 0x51b099
mov ecx, edi
call fcn.0040a930
jmp 0x49d116
push dword [edi + 4]
call fcn.00411477
jmp 0x49d130
push eax
push eax
lea eax, [edi + 0x4c]
push eax
call fcn.0040b0a9
jmp 0x49d236
lea eax, [ebp + 0x1b]
push eax
push ebx
push ebx
push edi
call fcn.004b6be1
jmp 0x49d15a
test al, al
je 0x4a8b81
jmp 0x4a8c23
push dword [edi + 4]
call fcn.00411477
mov dword [ebp + 0xc], eax
mov esi, eax
jmp 0x4a8b49
mov eax, dword fs:[0x124]
push esi
lea edx, [ebp - 0xc]
push edx
push dword [eax + 0x44]
push edi
call dword [ecx + 0x20]
jmp 0x514340
push ebx
push ebx
push ebx
push 6
lea eax, [ebp - 0x1c]
push eax
call fcn.00405400
jmp 0x4a8c23
push ebx
push ebx
lea eax, [edi + 0x4c]
push eax
call fcn.0040b0a9
jmp 0x4a8c3d
lea eax, [ebp + 0x17]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b6be1
mov ecx, dword [ebp - 4]
jmp 0x4a8b74
xor eax, eax
push eax
push eax
push eax
push 6
lea eax, [ebp - 0x1c]
push eax
call fcn.00405400
jmp 0x49d1f4