Function at 0x4c4a70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56273b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
push edi
lea edi, [ebp - 0x1c4]
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x634928]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x65a216
call fcn.0053954a
push 0x20
lea ecx, [ebp - 0x34]
call fcn.00491740
lea ecx, [ebp - 0x34]
call fcn.004bc530
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x30
call fcn.004a2a20
mov dword [ebp - 0x40], eax
push 0x14
lea ecx, [ebp - 0x5c]
call fcn.00491740
lea ecx, [ebp - 0x5c]
call fcn.004bbf50
mov byte [ebp - 4], 1
push 4
lea ecx, [ebp - 0x68]
call fcn.00491740
lea ecx, [ebp - 0x68]
call fcn.0048e2d0
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x74]
call fcn.00491740
lea ecx, [ebp - 0x74]
call fcn.0048e2d0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0x18
call fcn.004a2a20
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x24
call fcn.004a2a20
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x80]
imul edx, dword [ebp - 0x88]
imul eax, edx, 0x32
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.004c9800
mov ecx, dword [ebp - 0x80]
shl ecx, 4
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004c97c0
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1a8]
call fcn.004bbdb0
mov ecx, eax
call fcn.004bd9b0
mov byte [ebp - 0x8d], al
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
and eax, 0x40
je 0x4c4bac
mov dword [ebp - 0x1b0], 0
jmp 0x4c4bd9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
and edx, 0x20
je 0x4c4bc3
mov dword [ebp - 0x1b4], 1
jmp 0x4c4bcd
mov dword [ebp - 0x1b4], 0xffffffff
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1b0]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
and eax, 8
je 0x4c4bf9
mov byte [ebp - 0x1b5], 1
jmp 0x4c4c00
mov byte [ebp - 0x1b5], 0
mov cl, byte [ebp - 0x1b5]
mov byte [ebp - 0x9d], cl
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
and eax, 0x20
je 0x4c4c20
mov byte [ebp - 0x1b6], 1
jmp 0x4c4c27
mov byte [ebp - 0x1b6], 0
mov cl, byte [ebp - 0x1b6]
mov byte [ebp - 0xa5], cl
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
and eax, 0x10
je 0x4c4c47
mov byte [ebp - 0x1b7], 1
jmp 0x4c4c4e
mov byte [ebp - 0x1b7], 0
mov cl, byte [ebp - 0x1b7]
mov byte [ebp - 0xad], cl
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
and eax, 0x2000
je 0x4c4c70
mov byte [ebp - 0x1b8], 1
jmp 0x4c4c77
mov byte [ebp - 0x1b8], 0
mov cl, byte [ebp - 0x1b8]
mov byte [ebp - 0xae], cl
xor edx, edx
mov byte [ebp - 0x1a9], dl
lea ecx, [ebp - 0x1a9]
call fcn.004bcc20
mov dword [ebp - 0xb4], eax
xor eax, eax
mov byte [ebp - 0x1aa], al
lea ecx, [ebp - 0x1aa]
call fcn.004bcc80
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
and edx, 0x80
je 0x4c4cd1
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x1bc], eax
jmp 0x4c4cdd
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0xc0], edx
movzx eax, byte [ebp - 0xae]
test eax, eax
je 0x4c4e83
mov dword [ebp - 0xcc], 0
cmp dword [ebp - 0x98], 0xffffffff
je 0x4c4d54
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
and edx, 0x4000
je 0x4c4d25
mov dword [ebp - 0x1c0], 1
jmp 0x4c4d2f
mov dword [ebp - 0x1c0], 0
cmp dword [ebp - 0x1c0], 0
jne 0x4c4d54
mov dword [ebp - 0xcc], 1
mov eax, dword [ebp - 0x98]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.004c6e70
mov dword [ebp - 0xd4], 0
jmp 0x4c4d6f
mov ecx, dword [ebp - 0xd4]
add ecx, 1
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
cmp edx, dword [ebp - 0x88]
jae 0x4c4e37
push 4
lea ecx, [ebp - 0xdc]
call fcn.00491740
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x24
call fcn.0049b4c0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0xdc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
call fcn.004bef80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xdc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.004bbe00
movzx edx, byte [ebp - 0x9d]
test edx, edx
je 0x4c4e18
lea ecx, [ebp - 0xdc]
call fcn.004925d0
movzx eax, al
test eax, eax
je 0x4c4e0b
mov ecx, dword [ebp - 0xcc]
add ecx, 1
mov dword [ebp - 0xcc], ecx
jmp 0x4c4e16
lea ecx, [ebp - 0xf4]
call fcn.004bdf90
jmp 0x4c4e23
lea ecx, [ebp - 0xf4]
call fcn.004bdf90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xdc]
call fcn.0048e9b0
jmp 0x4c4d60
push 1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.004c7a00
movzx ecx, al
test ecx, ecx
je 0x4c4e68
push 0
mov ecx, dword [ebp - 0x7c]
call fcn.00493990
mov edx, dword [ebp + 0x10]
sub eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00493750
cmp dword [ebp - 0x80], 0
je 0x4c4e83
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00491b40
mov dword [ebp - 0x100], 0
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x114]
call fcn.004bbdb0
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0xa5]
push eax
lea ecx, [ebp - 0x128]
call fcn.004bbdb0
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.004bbdb0
mov ecx, dword [ebp + 0x10]
add ecx, 0x18
mov dword [ebp - 0x144], ecx
mov ecx, dword [ebp - 0x144]
call fcn.004c3e00
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x144]
call fcn.004c3f40
mov dword [ebp - 0x14c], eax
jmp 0x4c4f1d
mov edx, dword [ebp - 0x148]
add edx, 4
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
cmp eax, dword [ebp - 0x14c]
je 0x4c535f
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx]
mov dword [ebp - 0x150], edx
mov ecx, dword [ebp - 0x7c]
call fcn.00493990
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x98], 0xffffffff
jle 0x4c4f7e
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x98]
add ecx, 1
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x1c4]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.004c6e70
mov dword [ebp - 0x154], 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x24
call fcn.004a2a20
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], 0
mov byte [ebp - 0x15d], 0
mov byte [ebp - 0x15e], 0
mov dword [ebp - 0x164], 0
jmp 0x4c4fcc
mov eax, dword [ebp - 0x164]
add eax, 1
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
cmp ecx, dword [ebp - 0x158]
jae 0x4c5298
mov edx, dword [ebp - 0x164]
push edx
mov ecx, dword [ebp + 0x10]
add ecx, 0x24
call fcn.0049b4c0
mov eax, dword [eax]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x40], 0
jbe 0x4c517e
movzx ecx, byte [ebp - 0x8d]
test ecx, ecx
je 0x4c517e
cmp dword [ebp - 0x164], 0
jne 0x4c517e
lea ecx, [ebp - 0x68]
call fcn.004925d0
movzx edx, al
test edx, edx
je 0x4c5048
mov ecx, dword [ebp + 0x10]
add ecx, 0x18
call fcn.004a2a20
imul eax, dword [ebp - 0x40]
imul eax, eax, 0x32
push eax
lea ecx, [ebp - 0x68]
call fcn.004c9800
lea ecx, [ebp - 0x68]
call fcn.00493990
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x30
mov dword [ebp - 0x170], ecx
mov ecx, dword [ebp - 0x170]
call fcn.004c3e00
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x170]
call fcn.004c3f40
mov dword [ebp - 0x178], eax
jmp 0x4c5095
mov edx, dword [ebp - 0x174]
add edx, 4
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x174]
cmp eax, dword [ebp - 0x178]
je 0x4c5103
mov ecx, dword [ebp - 0x174]
mov edx, dword [ecx]
mov dword [ebp - 0x17c], edx
mov eax, dword [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x128]
call fcn.004bd270
mov dword [ebp - 0x180], eax
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x180]
movzx edx, word [ecx + eax]
test edx, edx
je 0x4c50f7
push 0
mov eax, dword [ebp - 0x180]
push eax
lea ecx, [ebp - 0x68]
call fcn.00491b40
push 0
lea ecx, [ebp - 0x68]
call fcn.00493420
jmp 0x4c5086
lea ecx, [ebp - 0x68]
call fcn.00493990
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x184], eax
lea ecx, [ebp - 0x68]
call fcn.004922a0
mov ecx, dword [ebp - 0x16c]
lea edx, [eax + ecx*2]
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x68]
call fcn.004922a0
push eax
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x188]
push edx
lea ecx, [ebp - 0x114]
call fcn.004bd3b0
mov byte [ebp - 0x15e], al
movzx eax, byte [ebp - 0x15e]
test eax, eax
je 0x4c517e
push 0
mov ecx, dword [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00493750
jmp 0x4c5298
mov edx, dword [ebp - 0x168]
push edx
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x128]
call fcn.004bd270
mov dword [ebp - 0x18c], eax
movzx ecx, byte [ebp - 0x9d]
test ecx, ecx
je 0x4c521d
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x18c]
movzx edx, word [ecx + eax]
test edx, edx
jne 0x4c51d2
mov eax, dword [ebp - 0x15c]
add eax, 1
mov dword [ebp - 0x15c], eax
jmp 0x4c4fbd
mov dword [ebp - 0x190], 0
jmp 0x4c51ed
mov ecx, dword [ebp - 0x190]
add ecx, 1
mov dword [ebp - 0x190], ecx
mov edx, dword [ebp - 0x190]
cmp edx, dword [ebp - 0x15c]
jge 0x4c5213
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00491b40
jmp 0x4c51de
mov dword [ebp - 0x15c], 0
cmp dword [ebp - 0x164], 0
ja 0x4c522f
cmp dword [ebp - 0x98], 0
jle 0x4c5245
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00491b40
cmp dword [ebp - 0x164], 0
jne 0x4c525c
mov ecx, dword [ebp - 0x7c]
call fcn.00493990
mov dword [ebp - 0x154], eax
push 0
mov edx, dword [ebp - 0x18c]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00491b40
cmp dword [ebp - 0x18c], 0
je 0x4c5293
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x18c]
movzx eax, word [edx + ecx]
test eax, eax
je 0x4c5293
mov byte [ebp - 0x15d], 1
jmp 0x4c4fbd
movzx ecx, byte [ebp - 0x15e]
test ecx, ecx
jne 0x4c52b9
movzx edx, byte [ebp - 0x15d]
test edx, edx
jne 0x4c52c9
movzx eax, byte [ebp - 0xad]
test eax, eax
je 0x4c52c9
lea ecx, [ebp - 0x13c]
call fcn.004be040
jmp 0x4c4f0e
cmp dword [ebp - 0x40], 0
jbe 0x4c5345
movzx ecx, byte [ebp - 0x8d]
test ecx, ecx
jne 0x4c5345
mov ecx, dword [ebp - 0x7c]
call fcn.004922a0
mov edx, dword [ebp - 0x154]
lea eax, [eax + edx*2]
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x7c]
call fcn.00493990
sub eax, dword [ebp - 0x154]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.004922a0
push eax
mov edx, dword [ebp - 0x198]
push edx
mov eax, dword [ebp - 0x194]
push eax
lea ecx, [ebp - 0x114]
call fcn.004bd3b0
movzx ecx, al
test ecx, ecx
je 0x4c5345
lea ecx, [ebp - 0x13c]
call fcn.004be040
jmp 0x4c4f0e
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00491b40
jmp 0x4c4f0e
mov ecx, dword [ebp - 0x7c]
call fcn.004925d0
movzx eax, al
test eax, eax
je 0x4c53a3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.0048e9b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0048e9b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004bc740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004bc9b0
jmp 0x4c53fb
mov ecx, dword [ebp - 0x7c]
call fcn.00493990
mov ecx, dword [ebp + 0x10]
sub eax, dword [ecx + 8]
mov dword [ebp - 0x19c], eax
push 0
mov edx, dword [ebp - 0x19c]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00493750
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.0048e9b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0048e9b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004bc740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004bc9b0
push edx
mov ecx, ebp
push eax
lea edx, [0x4c5434]
call fcn.005394c7
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053957c
add esp, 0x1c4
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret