Function at 0x404ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x675498
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d35d0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xc]
mov edx, dword [eax]
lea esi, [edi + 0xc]
mov ecx, esi
call edx
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov dword [esi + 0x7f80c], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call edx
mov eax, dword [eax]
mov ecx, dword [esi + 0x7f80c]
mov dword [esi + 0x1302c], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call edx
mov eax, dword [eax + 4]
mov dword [esi + 0x13030], eax
mov eax, dword [edi + 8]
lea ecx, [eax + 0xdf478]
lea edx, [eax + 0x410]
add eax, 0x418
mov dword [edi + 0x7f81c], ecx
push eax
mov ecx, esi
mov dword [edi + 0x7f820], edx
call fcn.0047ce3e
mov edi, dword [edi + 8]
add edi, 0x428
push edi
mov ecx, esi
call fcn.0047cf5b
push 0xb
xor ebx, ebx
mov edi, 0xf
push 0x6877cc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404c00
mov dword [esp + 0x68], ebx
mov eax, dword [esi + 0x7f8f0]
mov eax, dword [eax]
lea ecx, [esi + 0x7f8f0]
lea edx, [esp + 0x24]
push edx
call eax
or ebp, 0xffffffff
mov dword [esp + 0x68], ebp
cmp dword [esp + 0x3c], 0x10
jb 0x40500e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0046efcb
add esp, 4
push 0xb
push 0x6877d8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404c00
mov dword [esp + 0x68], 1
mov edx, dword [esi + 0x7f990]
mov edx, dword [edx]
lea ecx, [esi + 0x7f990]
lea eax, [esp + 0x24]
push eax
call edx
mov dword [esp + 0x68], ebp
cmp dword [esp + 0x3c], 0x10
jb 0x40505f
mov eax, dword [esp + 0x28]
push eax
call fcn.0046efcb
add esp, 4
push 0xb
push str.sys002.ogg
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404c00
mov dword [esp + 0x68], 2
mov edx, dword [esi + 0x7fa30]
mov edx, dword [edx]
lea ecx, [esi + 0x7fa30]
lea eax, [esp + 0x24]
push eax
call edx
mov dword [esp + 0x68], ebp
cmp dword [esp + 0x3c], 0x10
jb 0x4050b0
mov eax, dword [esp + 0x28]
push eax
call fcn.0046efcb
add esp, 4
push 5
push 0x6877f0
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00404c00
mov dword [esp + 0x68], 3
push 0xb
push str.pgmain.txt
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404c00
push ebp
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 4]
mov byte [esp + 0x74], 4
call fcn.00404790
push ebp
push ebx
lea edx, [esp + 0x48]
push edx
lea ecx, [esi + 0x20]
call fcn.00404790
cmp dword [esp + 0x3c], 0x10
jb 0x405127
mov eax, dword [esp + 0x28]
push eax
call fcn.0046efcb
add esp, 4
mov dword [esp + 0x68], ebp
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x40514b
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0046efcb
add esp, 4
call fcn.00454d30
cmp byte [eax + 0x40], bl
jne 0x40517a
push ebx
push ebx
lea edx, [esi + 0x20]
push edx
lea eax, [esi + 4]
push eax
mov ecx, esi
call fcn.0047d5f8
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00454d30
sub esp, 0x1c
cmp dword [eax + 0x44], ebx
mov ecx, esp
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
je 0x4051e8
mov dword [esp + 0x34], esp
push ebx
push 0x689aff
call fcn.00404c00
sub esp, 0x1c
mov dword [esp + 0xa0], 5
mov ecx, esp
mov dword [esp + 0x54], esp
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x689b0a
mov byte [ecx + 4], bl
call fcn.00404c00
push 0xc
lea ecx, [esi + 0x20c24]
mov dword [esp + 0xa4], ebp
call fcn.004ad85d
mov ecx, dword [esi + 0x16dc]
push 0xc
push ecx
jmp 0x40523c
mov dword [esp + 0x38], esp
push ebx
push 0x689aff
call fcn.00404c00
sub esp, 0x1c
mov dword [esp + 0xa0], 6
mov ecx, esp
mov dword [esp + 0x50], esp
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x689b0a
mov byte [ecx + 4], bl
call fcn.00404c00
push 0xa
lea ecx, [esi + 0x20c24]
mov dword [esp + 0xa4], ebp
call fcn.004ad85d
mov edx, dword [esi + 0x16dc]
push 0xa
push edx
call fcn.004cbe26
mov ecx, dword [esi + 0x16dc]
push ebx
push ebx
call fcn.004cbf5f
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret