Function at 0x415050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1116
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x553abc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [0x531024]
lea ecx, [esi + 0x3c]
mov dword [ecx], eax
lea edi, [esi + 0x48]
mov dword [ebp - 4], ebx
mov dword [edi], vtable.yaneuraoGameSDK3rd::YTL::smart_ptr_class_CTexture_.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 0xffffffff
call fcn.00403d70
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x1c], ecx
xor eax, eax
mov ecx, edi
mov dword [esi + 4], 0xc0000000
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0xff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
call fcn.00413cb0
mov ecx, 0x555c3c
call fcn.0040f510
mov eax, dword [0x555414]
mov edi, dword [ebp + 0x1c]
push 2
lea ecx, [ebp + 8]
push ecx
mov ecx, edi
mov dword [esi + 0x5c], eax
call fcn.004060e0
mov eax, dword [eax]
push 0x4ee2a8
push eax
call fcn.004b9ba6
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
setne byte [ebp + 0x1f]
cmp edx, dword [0x531020]
je 0x415176
add eax, 0xfffffff4
push eax
call dword [0x4ed26c]
test eax, eax
jg 0x415176
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.004b7e1e
add esp, 4
cmp byte [ebp + 0x1f], bl
mov ecx, dword [esi + 0x5c]
je 0x41519d
mov eax, dword [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.0044db50
mov dword [ebp - 4], 1
jmp 0x4151a5
mov eax, dword [edi]
push eax
call fcn.0044d610
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x5c]
push eax
call fcn.0044a400
mov ecx, dword [esi + 0x30]
mov edi, eax
mov eax, dword [edi + 8]
cmp eax, ebx
mov dword [ebp + 0x1c], ecx
je 0x4151da
mov edx, dword [edi + 0xc]
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x4151e2
call fcn.004b899b
mov ecx, dword [ebp + 0x1c]
mov edx, dword [edi + 8]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
push ebx
call fcn.004438c0
push eax
lea eax, [esi + 0xc]
push eax
call dword [0x4ed29c]
mov eax, dword [edi + 8]
cmp eax, ebx
mov ecx, dword [esi + 0x30]
mov dword [ebp + 0x1c], ecx
je 0x415223
mov edx, dword [edi + 0xc]
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x41522b
call fcn.004b899b
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + ecx*4]
mov ecx, dword [edi + 8]
lea ecx, [ecx + eax*4]
push ebx
call fcn.004438c0
mov edx, dword [eax + 0x10]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 8]
cmp eax, ebx
mov dword [ebp + 0x1c], ecx
je 0x415267
mov edx, dword [edi + 0xc]
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x41526f
call fcn.004b899b
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + ecx*4]
mov ecx, dword [edi + 8]
lea ecx, [ecx + eax*4]
push ebx
call fcn.004438c0
mov edx, dword [eax + 0x14]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x18]
or dword [esi + 4], 0x20000000
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18