Function at 0x4ae970
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ff644
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0046b880
xor ebx, ebx
mov dword [esi], 0x50bcac
mov dword [esi + 8], str.hue_gump
lea ebp, [esi + 0x24]
mov dword [esi + 0x64], ebx
lea edi, [esi + 0x20]
mov dword [esi + 0x58], ebx
push ebp
mov dword [esi + 0x68], ebx
push edi
mov dword [esi + 0x54], ebx
push 0x906
mov dword [esp + 0x28], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
call fcn.004a9760
mov eax, dword [0x557ce4]
mov ecx, dword [edi]
sub eax, ecx
mov ecx, dword [ebp]
cdq
sub eax, edx
push str.framedata_for_CDumbGump
sar eax, 1
mov dword [esi + 0x30], eax
mov eax, dword [0x557ce8]
sub eax, ecx
mov ecx, dword [esp + 0x34]
cdq
sub eax, edx
mov dx, word [esp + 0x38]
sar eax, 1
mov dword [esi + 0x34], eax
mov eax, 0x22
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xcc], ecx
mov cx, word [esp + 0x3c]
mov eax, 1
push 8
mov dword [esi + 0xe0], 0xc1
mov dword [esi + 0xe4], 0x71
mov word [esi + 0xe8], 3
mov word [esi + 0xea], ax
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc0], ebx
mov word [esi + 0xd0], dx
mov word [esi + 0xd2], cx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
call fcn.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], edi
push str.dumb_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp]
imul eax, dword [esi + 0x20]
lea ecx, [eax + eax + 4]
push ecx
call fcn.004b9f50
mov edx, dword [esi + 0x40]
mov dword [edx + 4], eax
mov ecx, dword [ebp]
imul ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x40]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x40]
mov dx, word [esi + 0x20]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov dx, word [ebp]
mov ecx, dword [eax + 4]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x40]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 4]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push ebx
push ebx
push 0x906
push fcn.004d52c0
call fcn.004a97c0
add esp, 0x38
mov ecx, esi
call fcn.004aee20
push 0xc0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x4aeb69
push 0x845
push esi
push 0xba
push ebx
push 0x8e
push 0x26
mov ecx, eax
call fcn.0043c280
jmp 0x4aeb6b
xor eax, eax
mov dword [esi + 0xa0], eax
mov word [eax + 0xb8], 0x846
mov ecx, dword [esi + 0xa0]
push 1
push esi
mov byte [esp + 0x24], bl
call fcn.0046af30
mov ecx, dword [esi + 0xa0]
xor eax, eax
mov ax, word [esi + 0xea]
push 4
push eax
call fcn.0043c760
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x1c], 2
je 0x4aebde
push ebx
push 0x4a0320
push ebx
push 2
push esi
push 0x9e
push 0x27
push 0x8e
push 0x1a
mov ecx, eax
call fcn.0043bb90
jmp 0x4aebe0
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x24], bl
mov dword [esi + 0xa4], eax
call fcn.0046af30
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x1c], 3
je 0x4aec35
push ebx
push 0x4a0360
push ebx
push 2
push esi
push 0x9e
push 0xc5
push 0x8e
push 0xb8
mov ecx, eax
call fcn.0043bb90
jmp 0x4aec37
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x24], bl
mov dword [esi + 0xa8], eax
call fcn.0046af30
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x1c], 4
je 0x4aec8b
push ebx
push 0x908
push 0x907
push 0x49d4b0
push ebx
push ebx
push esi
push 0x8a
push 0xd0
mov ecx, eax
call fcn.0043ba10
jmp 0x4aec8d
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x24], bl
mov dword [eax + 0xb0], 0x909
call fcn.0046af30
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc