Function at 0x499930
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4fef6e
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
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
xor ebx, ebx
mov dword [esi], 0x50b7cc
mov dword [esi + 0x30], eax
mov dword [esi + 8], str.unicode_edit_list_gump
lea eax, [esi + 0x24]
mov dword [esi + 0x64], ebx
lea ebp, [esi + 0x20]
mov dword [esi + 0x38], ebx
push eax
mov dword [esi + 0xc0], ebx
push ebp
mov dword [esi + 0xb4], ebx
push edx
mov dword [esp + 0x28], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
call fcn.004a9760
push str.framedata_for_CUnicodeEditListGump
push 8
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
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.cfg_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 + 0x24]
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 + 0x24]
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 [ebp]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
mov dx, word [esi + 0x24]
mov eax, dword [esp + 0x54]
mov word [ecx + 2], dx
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0x24]
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0xe4], ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 0x40]
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xd8], ebx
mov word [esi + 0xd6], 0xa
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0x58], eax
push ecx
mov ecx, dword [edx + 4]
add ecx, 4
push ecx
push ebx
push ebx
push eax
push fcn.004d52c0
call fcn.004a97c0
push 0xf0
call fcn.004ed8ee
add esp, 0x3c
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x499afb
mov edx, dword [ebp]
push ebx
push 0x983
push 0x983
push fcn.0049ba30
push ebx
push 2
push esi
sub edx, 0xe
push 8
push edx
mov ecx, eax
call fcn.0043ba10
jmp 0x499afd
xor eax, eax
mov dword [esi + 0xa0], eax
mov dword [eax + 0x70], ebx
mov eax, dword [esi + 0xa0]
push 1
push esi
mov byte [esp + 0x24], bl
mov dword [eax + 0xb0], 0x984
mov ecx, dword [esi + 0xa0]
call fcn.0046af30
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x1c], 2
je 0x499b6d
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp]
push ebx
push 0x985
push 0x985
push fcn.0049bb50
push ebx
push 2
sub ecx, 0x14
push esi
sub edx, 0xe
push ecx
push edx
mov ecx, eax
call fcn.0043ba10
jmp 0x499b6f
xor eax, eax
mov dword [esi + 0xa4], eax
mov dword [eax + 0x70], ebx
mov eax, dword [esi + 0xa4]
push 1
push esi
mov byte [esp + 0x24], bl
mov dword [eax + 0xb0], 0x986
mov ecx, dword [esi + 0xa4]
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 0x1c