Function at 0x4c5160
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73b956
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ebx, [edi + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
mov dword [edi + 4], eax
mov dword [ebx], 0
push 0x18
mov dword [ebp + 8], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.0073298e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 4], eax
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x1c], 8
mov dword [ebx], 0x3f800000
push dword [ebx + 4]
push 0x10
call fcn.00488bd0
mov byte [ebx + 0x20], 1
mov dword [ebp - 4], 2
sub esp, 8
mov eax, dword [edi]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.event_ver
mov dword [eax + 4], 9
call fcn.00481da0
mov byte [ebp + 8], 0
cmp eax, 6
jne 0x4c538d
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.keymap_emu
mov dword [eax + 4], 0xa
call fcn.00485e20
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4c527d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 7
mov ecx, edi
call fcn.004c5450
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.keymap_joy
mov dword [eax + 4], 0xa
call fcn.00485e20
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4c52b0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 2
mov ecx, edi
call fcn.004c5450
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.keymap_pad
mov dword [eax + 4], 0xa
call fcn.00485e20
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4c52e3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 3
mov ecx, edi
call fcn.004c5450
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.keymap_drv
mov dword [eax + 4], 0xa
call fcn.00485e20
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4c5316
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 5
mov ecx, edi
call fcn.004c5450
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.keymap_key
mov dword [eax + 4], 0xa
call fcn.00485e20
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4c5349
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 4
mov ecx, edi
call fcn.004c5450
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.keymap_ui
mov dword [eax + 4], 9
call fcn.00485e20
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4c537c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 1
mov ecx, edi
call fcn.004c5450
mov byte [ebp + 8], 1
mov eax, dword [edi]
sub esp, 8
mov ecx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], str.modcombo
mov dword [eax + 4], 8
call fcn.00481e10
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
push 0
push 0
mov byte [edi + 0x28], al
call fcn.004c5970
push esi
push 1
push 0
mov ecx, edi
call fcn.004c5970
push esi
push 8
push 0
mov ecx, edi
call fcn.004c5970
cmp byte [ebp + 8], 0
jne 0x4c53ef
push 9
push 0
mov ecx, ebx
call fcn.004aede0
push 9
push 0
mov ecx, ebx
call fcn.004aede0
mov esi, dword [0x8e8298]
mov ebx, dword [0x8e829c]
cmp esi, ebx
je 0x4c5418
nop
push dword [esi + 8]
mov ecx, edi
push dword [esi + 4]
push 9
push dword [esi]
call fcn.004c67d0
add esi, 0xc
cmp esi, ebx
jne 0x4c5400
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8