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

Disassembly:
push 0xffffffffffffffff
push 0x50069a
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.0046b880
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi], 0x50c900
mov eax, dword [0xd423f8]
xor ebx, ebx
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], 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 + 0x64], ebx
push 0x820
mov dword [esp + 0x30], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x58], 0x820
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
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.004a9760
push str.framedata_for_CTextGump
push 0x10
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 2
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.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.004b9f50
mov edx, dword [esi + 0x40]
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x24]
imul ecx, dword [ebp]
shl ecx, 1
xor eax, eax
mov edx, dword [esi + 0x40]
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 + 0x40]
mov dx, word [ebp]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
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.004b9f50
mov edx, dword [esi + 0x40]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x28]
imul ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x40]
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 + 0x40]
mov dx, word [esi + 0x28]
mov ecx, dword [eax + 0xc]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov dx, word [esi + 0x2c]
mov ecx, dword [eax + 0xc]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x40]
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.004d52c0
call fcn.004a97c0
mov ebp, dword [ebp]
add esp, 0x4c
mov dword [esi + 0xbc], 0x26
mov dword [esi + 0xc0], 0x44
lea eax, [ebp - 0x31]
mov ecx, eax
mov dword [esi + 0xc4], eax
and ecx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4d63b7
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x4d63c0
dec eax
mov dword [esi + 0xc4], eax
mov edx, dword [esi + 0x24]
mov ecx, esi
sub edx, 0x4e
mov dword [esi + 0xc8], edx
call fcn.004d6dc0
push 1
push 1
mov ecx, esi
call fcn.004d6f30
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x82e
call fcn.004a9760
push 0xc0
call fcn.004ed8ee
add esp, 0x10
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 1
je 0x4d642e
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 pe_nt_image_headers32
mov ecx, eax
call fcn.0043c280
jmp 0x4d6430
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
mov dword [esi + 0xcc], eax
call fcn.0046af30
mov ecx, dword [esi + 0xcc]
call fcn.0043c680
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 2
je 0x4d648b
push ebx
push 0x82d
push 0x82d
push fcn.0049d9b0
push ebx
push ebx
push esi
push ebx
push 0x89
mov ecx, eax
call fcn.0043ba10
jmp 0x4d648d
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
call fcn.0046af30
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 3
je 0x4d64e3
mov ecx, dword [esi + 0x24]
mov ebp, dword [esp + 0x10]
push ebx
push 0x82e
push 0x82e
push 0x4a1060
sub ecx, ebp
push ebx
push ebx
sub ecx, 3
push esi
push ecx
push 0x89
mov ecx, eax
call fcn.0043ba10
jmp 0x4d64e5
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
mov dword [eax + 0xb0], 0x82f
call fcn.0046af30
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 4
je 0x4d6542
mov edx, dword [esi + 0x24]
mov ecx, dword [esp + 0x10]
push ebx
push 0x82c
push ebx
push 0x49de00
sub edx, ecx
push ebx
push 1
sub edx, 0x34
push esi
push edx
push 0xe9
mov ecx, eax
call fcn.0043ba10
jmp 0x4d6544
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
mov dword [esi + 0xd0], eax
call fcn.0046af30
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 5
je 0x4d6596
push ebx
push 0x824
push 0x824
push 0x49dd00
push ebx
push 2
push esi
push 0x38
push 0xf9
mov ecx, eax
call fcn.0043ba10
jmp 0x4d6598
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
call fcn.0046af30
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 6
je 0x4d65ef
mov ecx, dword [esi + 0x24]
mov ebp, dword [esp + 0x10]
push ebx
push 0x825
push 0x825
push 0x49dc50
sub ecx, ebp
push ebx
push 2
sub ecx, 0x34
push esi
push ecx
push 0xf9
mov ecx, eax
call fcn.0043ba10
jmp 0x4d65f1
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x2c], bl
call fcn.0046af30
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