Function at 0x4c36a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov esi, esp
mov dword [esi + 0x108], ebp
mov dword [esi + 0x3c], ecx
lea edi, [esi + 0x110]
mov dword [edi - 4], esp
xor eax, eax
dec eax
mov dword [edi + 8], eax
mov dword [edi + 4], 0x4497a0
mov ecx, dword fs:[0]
mov dword [edi], ecx
mov dword fs:[0], edi
mov dword [esi + 0x14], edx
lea ecx, [esi + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov al, 0xff
lea edx, [esi + 0xb]
mov byte [edx], al
lea ebx, [esi + 0x13]
mov byte [ebx], al
pcmpeqd xmm0, xmm0
lea eax, [esi + 0x40]
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov edx, dword [ebp + 0xc]
push ebx
lea ebx, [esi + 0xb]
push ebx
push eax
call fcn.0040cdd0
add esp, 0xc
xor eax, eax
lea ecx, [esi + 0x18]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [edi + 8], eax
push eax
push 0xa
call fcn.00475e80
cmp byte [esi + 0x23], 0
lea eax, [esi + 0x18]
jns 0x4c373f
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x24]
mov dword [esi + 0xc], eax
mov dword [ecx], eax
lea edi, [esi + 0x68]
push 0xa0
push 0xff
push edi
call fcn.00498980
add esp, 0xc
lea eax, [esi + 0x2c]
mov dword [eax], edi
lea eax, [esi + 0x28]
mov dword [eax], 0
lea eax, [esi + 0xa]
mov byte [eax], 1
lea eax, [esi + 0x12]
mov byte [eax], 0x45
mov al, byte [esi + 0x13]
mov byte [esi + 0x11], al
mov al, byte [esi + 0xb]
mov byte [esi + 0x10], al
lea ecx, [esi + 0x14]
lea eax, [ebp + 8]
push eax
call fcn.00472100
test al, al
jne 0x4c38b6
mov eax, dword [esi + 0x24]
movzx ebx, byte [esi + 0x23]
test bl, bl
mov edx, dword [esi + 0xc]
jns 0x4c37a8
mov ebx, dword [esi + 0x1c]
lea ecx, [edx + ebx]
cmp eax, ecx
je 0x4c3816
mov dword [esi + 0xc], edx
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x4c3862
mov al, byte [eax]
movsx edi, byte [esi + 0x11]
movsx ebx, byte [esi + 0x10]
movsx ecx, al
lea edx, [esi + 0xa]
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x30]
push eax
push edi
push ebx
lea eax, [esi + 0x24]
push eax
push dword [esi + 0xc]
lea eax, [esi + 0x12]
push eax
call fcn.00475a70
add esp, 0x28
test eax, eax
jne 0x4c38b6
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x4c388c
inc eax
mov dword [edi + 0xc], eax
jmp 0x4c3783
mov dword [esi + 0xc], ebx
lea eax, [ebx + ebx]
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.00475e80
mov eax, dword [esi + 0x20]
mov ecx, 0x7fffffff
and eax, ecx
dec eax
cmp byte [esi + 0x23], 0
mov ecx, 0xa
cmovns eax, ecx
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.00475e80
cmp byte [esi + 0x23], 0
lea edx, [esi + 0x18]
jns 0x4c3855
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, edx
mov dword [esi + 0x24], eax
jmp 0x4c37af
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0x118], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov dword [esi + 0x118], 0
mov ecx, edi
call ebx
jmp 0x4c37c3
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0x118], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov dword [esi + 0x118], 0
mov ecx, edi
call ebx
jmp 0x4c3783
mov ecx, dword [esi + 0xc]
movzx eax, byte [esi + 0x3b]
test al, al
jns 0x4c38c4
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x2c]
test eax, eax
je 0x4c38e7
cmp byte [esi + 0xa], 0
je 0x4c38e7
mov eax, edi
lea edx, [esi + 0x68]
sub eax, edx
cmp eax, 0x9f
jg 0x4c38e7
mov eax, dword [esi + 0x28]
mov dword [edi], eax
add edi, 4
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0041b230
add esp, 4
mov eax, dword [ebp + 0x14]
movq qword [eax], xmm0
lea ecx, [esi + 0x30]
lea edx, [esi + 0x68]
push ebx
push edi
call fcn.004ccc70
add esp, 8
lea ecx, [esi + 0x14]
lea eax, [ebp + 8]
push eax
call fcn.00472100
test al, al
je 0x4c3923
mov eax, dword [ebp + 0x10]
or byte [eax], 2
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x3c]
mov dword [edi], eax
cmp byte [esi + 0x23], 0
jns 0x4c393c
push dword [esi + 0x18]
call fcn.00494aa1
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x4c394d
push dword [esi + 0x30]
call fcn.00494aa1
add esp, 4
mov eax, dword [esi + 0x110]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret