Function at 0x4a0610
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7244
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x51e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
push 0x80
mov dword [esi], vtable.sekai_no_subete.0
mov dword [esi + 0x114], eax
mov dword [esi + 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004d9a7e
mov edi, dword [ebx + 0xc]
add esp, 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
lea ecx, [edi + 2]
mov dword [esi + 0x124], 0
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4a06d0
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x14], edi
lea eax, [edi*2 + 0x26]
push eax
call fcn.004d9a7e
add esp, 4
mov dword [esi + 0x2c], eax
add edi, edi
push edi
push dword [ebx + 0xc]
push eax
call fcn.004d6950
mov ecx, dword [esi + 0x2c]
xor edx, edx
movups xmm0, xmmword [str.perfect_dark.sekai]
add esp, 0xc
movups xmmword [ecx + edi], xmm0
movups xmm0, xmmword [0x50eac8]
movups xmmword [ecx + edi + 0x10], xmm0
mov eax, dword [0x50ead8]
mov dword [ecx + edi + 0x20], eax
mov edi, 0xfff
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x14]
mov word [eax + ecx*2 + 0x24], dx
mov ecx, edi
call fcn.004b0fe0
test eax, eax
je 0x4a0752
sub edi, 2
mov ecx, edi
call fcn.004b0fe0
test eax, eax
jne 0x4a0744
mov dword [esi + 0xa8], edi
lea edi, [esi + 0x30]
push edi
mov dword [esi + 0xac], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x9c4
call fcn.004d3886
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax + 0x9c0], 0x271
push 0x4000
mov dword [esi + 0x48], eax
mov dword [esi + 0x88], 0x1000
call fcn.004d9a7e
mov ecx, dword [esi + 0x88]
add esp, 4
shl ecx, 2
mov dword [esi + 0x4c], eax
push ecx
push 0
push eax
call fcn.004d6ed0
imul eax, dword [esi + 0x88], 0xa8
add esp, 0xc
push eax
call fcn.004d9a7e
imul ecx, dword [esi + 0x88], 0xa8
add esp, 4
mov dword [esi + 0x50], eax
push ecx
push 0
push eax
call fcn.004d6ed0
mov eax, dword [esi + 0x88]
add esp, 0xc
shl eax, 7
push eax
call fcn.004d9a7e
add esp, 4
mov dword [esi + 0xb0], eax
push 0x2000
call fcn.004d9a7e
add esp, 4
mov dword [esi + 0xb4], eax
push 0x200
call fcn.004d9a7e
mov dword [esi + 0xb8], eax
add esp, 4
mov dword [esi + 0x8c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x9c], 0
mov ecx, dword [esi + 0x50]
mov edi, dword [esi + 0x88]
mov eax, dword [esi + 0xb0]
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x54], ecx
mov dword [ecx + 0xa4], eax
sub edi, 1
je 0x4a091e
xor edx, edx
nop dword [eax + eax]
mov ecx, dword [esi + 0x50]
lea eax, [ecx + 0xa8]
add eax, edx
mov dword [ecx + edx + 0xc], eax
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + edx + 0xa4]
sub eax, 0xffffff80
mov dword [ecx + edx + 0x14c], eax
add edx, 0xa8
sub edi, 1
jne 0x4a08f0
xorps xmm0, xmm0
mov dword [esi + 0xbc], 0
movups xmmword [esi + 0xc0], xmm0
push 0x4000
movq qword [esi + 0xd0], xmm0
call fcn.004d9a7e
add esp, 4
mov dword [esi + 0xd8], eax
push 0x4000
call fcn.004d9a7e
add esp, 4
mov dword [esi + 0xdc], eax
mov edi, 0x75
mov dword [esi + 0xe0], 0
mov ecx, edi
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0x74
mov dword [esi + 0x104], 0
call fcn.004b0fe0
test eax, eax
je 0x4a09e2
add edi, 2
mov ecx, edi
call fcn.004b0fe0
test eax, eax
jne 0x4a09d4
push 0xe80
mov dword [esi + 0x108], edi
call fcn.004d9a7e
mov edi, dword [esi + 0x108]
add esp, 4
shl edi, 2
mov dword [esi + 0x10c], eax
push edi
call fcn.004d9a7e
add esp, 4
mov dword [esi + 0x110], eax
push edi
push 0
push eax
call fcn.004d6ed0
add esp, 0xc
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x40
call fcn.004d3886
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea edi, [eax + 0xc]
mov dword [eax], vtable.watashi_no_sekai.0
mov dword [eax + 8], esi
mov ecx, dword [esi + 0x114]
push edi
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xc8
call fcn.004d3886
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
push 0x28
push 0x1c
call fcn.00405f60
mov ecx, dword [ebp - 0x14]
xorps xmm0, xmm0
push edi
mov dword [ecx + 0x24], eax
movups xmmword [ecx + 0x28], xmm0
movq qword [ecx + 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x118], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8