Function at 0x4c4af0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4efeda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.0045ae70
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi], 0x4fba08
mov eax, dword [0xd16b8c]
xor ebx, ebx
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
lea edi, [esi + 0x24]
mov dword [esi + 0x30], ecx
lea ebp, [esi + 0x20]
mov dword [esi + 0x34], edx
push edi
mov dword [esi + 8], str.text_gump
push ebp
mov dword [esi + 0x60], ebx
push 0x820
mov dword [esp + 0x30], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x54], 0x820
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
call fcn.004447f0
mov eax, dword [ebp]
lea ecx, [esi + 0x28]
add eax, 7
mov dword [edi], 0x12c
and al, 0xf8
mov dword [esi + 0x1c], eax
mov dword [ebp], eax
lea eax, [esi + 0x2c]
push eax
push ecx
push 0x830
call fcn.004447f0
push str.framedata_for_CTextGump
push 0x10
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 2
call fcn.00479630
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x3c], edi
push str.text_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x24]
imul eax, dword [ebp]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x24]
imul ecx, dword [ebp]
shl ecx, 1
xor eax, eax
mov edx, dword [esi + 0x3c]
push str.text_frame1
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 + 0x3c]
mov dx, word [ebp]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 4]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x2c]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x28]
imul ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x3c]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 0xc]
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 + 0x3c]
mov dx, word [esi + 0x28]
mov ecx, dword [eax + 0xc]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x2c]
mov ecx, dword [eax + 0xc]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x3c]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax + 0xc]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push ebx
push ebx
push 0x830
push fcn.004c00b0
call fcn.00444850
mov ebp, dword [ebp]
add esp, 0x4c
mov dword [esi + 0xb8], 0x26
mov dword [esi + 0xbc], 0x44
lea eax, [ebp - 0x31]
mov ecx, eax
mov dword [esi + 0xc0], eax
and ecx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4c4d07
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x4c4d10
dec eax
mov dword [esi + 0xc0], eax
mov edx, dword [esi + 0x24]
mov ecx, esi
sub edx, 0x4e
mov dword [esi + 0xc4], edx
call fcn.004c5710
push 1
push 1
mov ecx, esi
call fcn.004c5880
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x82e
call fcn.004447f0
push 0xbc
call fcn.004ddf8e
add esp, 0x10
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 1
je 0x4c4d7e
mov edx, dword [esi + 0x24]
mov edi, dword [esp + 0x10]
sub edx, edi
push 0x1f
sub edx, 0x38
push esi
push edx
push 1
push 0x48
push 0x100
mov ecx, eax
call fcn.004231c0
jmp 0x4c4d80
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
mov dword [esi + 0xc8], eax
call fcn.0045a530
mov ecx, dword [esi + 0xc8]
call fcn.00423600
push 0xec
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 2
je 0x4c4ddb
push ebx
push 0x82d
push 0x82d
push fcn.0041e240
push ebx
push ebx
push esi
push ebx
push 0x89
mov ecx, eax
call fcn.00422990
jmp 0x4c4ddd
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
call fcn.0045a530
push 0xec
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 3
je 0x4c4e33
mov ecx, dword [esi + 0x24]
mov ebp, dword [esp + 0x10]
push ebx
push 0x82e
push 0x82e
push 0x421800
sub ecx, ebp
push ebx
push ebx
sub ecx, 3
push esi
push ecx
push 0x89
mov ecx, eax
call fcn.00422990
jmp 0x4c4e35
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
mov dword [eax + 0xac], 0x82f
call fcn.0045a530
push 0xec
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 4
je 0x4c4e92
mov edx, dword [esi + 0x24]
mov ecx, dword [esp + 0x10]
push ebx
push 0x82c
push ebx
push 0x41e6b0
sub edx, ecx
push ebx
push 1
sub edx, 0x34
push esi
push edx
push 0xe9
mov ecx, eax
call fcn.00422990
jmp 0x4c4e94
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
mov dword [esi + 0xcc], eax
call fcn.0045a530
push 0xec
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 5
je 0x4c4ee6
push ebx
push 0x824
push 0x824
push 0x41e590
push ebx
push 2
push esi
push 0x38
push 0xf9
mov ecx, eax
call fcn.00422990
jmp 0x4c4ee8
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
call fcn.0045a530
push 0xec
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 6
je 0x4c4f3f
mov ecx, dword [esi + 0x24]
mov ebp, dword [esp + 0x10]
push ebx
push 0x825
push 0x825
push 0x41e4e0
sub ecx, ebp
push ebx
push 2
sub ecx, 0x34
push esi
push ecx
push 0xf9
mov ecx, eax
call fcn.00422990
jmp 0x4c4f41
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
call fcn.0045a530
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8