Function at 0x46c970
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 0x59a134
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x318
mov eax, dword [0x5de040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x31c], edi
mov dword [ebp - 0x2f8], edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x308], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x30c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x328], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 0x318], eax
mov eax, dword [0x5e437c]
mov dword [ebp - 0x320], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [edi + 0x34]
mov dword [edi], vtable.LegacyGame.0
mov dword [edi + 0x30], 0
call fcn.004c54f0
mov byte [ebp - 4], 1
lea esi, [edi + 0x44]
mov dword [ebp - 0x2f8], esi
push 0x6c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0052d5e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi], eax
mov byte [ebp - 4], 2
lea esi, [edi + 0x4c]
mov dword [ebp - 0x2f8], esi
mov dword [esi], 0
push 0x2c
mov dword [ebp - 0x304], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0052d5e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x310], ecx
mov ecx, edx
sar ecx, 2
mov dword [ebp - 0x2f8], eax
cmp ecx, 0x10
jae 0x46cb80
push 0x40
call fcn.0052d5e8
mov edx, dword [esi + 0x14]
add esp, 4
mov ecx, dword [esi + 0xc]
sub edx, ecx
sar edx, 2
mov dword [ebp - 0x310], eax
test edx, edx
je 0x46cb61
shl edx, 2
cmp edx, 0x1000
jb 0x46cb51
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x304], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x46dae3
mov ecx, dword [ebp - 0x304]
push edx
push ecx
call fcn.0052d5b7
mov eax, dword [ebp - 0x310]
add esp, 8
lea ecx, [ebp - 0x2f8]
mov dword [esi + 0xc], eax
lea edx, [eax + 0x40]
push ecx
mov ecx, eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
call fcn.00405d30
add esp, 4
jmp 0x46cba4
mov esi, dword [ebp - 0x310]
lea ecx, [edx + 3]
shr ecx, 2
cmp esi, edx
mov edx, 0
cmova ecx, edx
test ecx, ecx
je 0x46cba4
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x31c]
mov byte [ebp - 4], 5
lea ecx, [edi + 0x70]
mov dword [edi + 0x6c], 0
call fcn.00455230
lea eax, [edi + 0xc4]
mov byte [ebp - 4], 6
mov dword [ebp - 0x2f8], eax
lea esi, [eax + 4]
mov dword [eax], 0
mov dword [ebp - 0x2f8], esi
push 0x6c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0052d5e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0xd0], 0
lea ecx, [edi + 0xf4]
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
call fcn.00454ec0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi + 0x160], xmm0
mov dword [edi + 0x170], 0
mov dword [edi + 0x174], 7
mov word [edi + 0x160], ax
mov dword [edi + 0x178], eax
mov dword [edi + 0x17c], eax
mov dword [edi + 0x180], eax
mov dword [edi + 0x184], eax
mov dword [edi + 0x188], eax
mov dword [edi + 0x18c], eax
mov byte [ebp - 4], 0xb
lea esi, [edi + 0x190]
mov dword [ebp - 0x2f8], esi
push 0x6c
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0052d5e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push dword [ebp - 0x2f4]
lea ecx, [edi + 0x198]
push dword [ebp - 0x308]
call fcn.00420920
push str.imm32.dll
lea esi, [edi + 0x19c]
call dword [0x5a41a4]
mov dword [esi + 0x1830], eax
test eax, eax
je 0x46cd43
mov esi, dword [0x5a416c]
push str.ImmLockIMC
push eax
call esi
push str.ImmUnlockIMC
push dword [edi + 0x19cc]
mov dword [edi + 0x19d0], eax
call esi
push str.ImmLockIMCC
push dword [edi + 0x19cc]
mov dword [edi + 0x19d4], eax
call esi
push str.ImmUnlockIMCC
push dword [edi + 0x19cc]
mov dword [edi + 0x19d8], eax
call esi
lea esi, [edi + 0x19c]
mov dword [esi + 0x1840], eax
mov eax, dword [ebp - 0x2f4]
push 0x800
mov dword [esi], eax
lea eax, [esi + 0x1018]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 0x181c], 0
mov dword [esi + 0x182c], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x1818], 0
call fcn.00580daf
add esp, 0xc
mov ecx, esi
call fcn.00443810
push 0xffffffffffffffff
call dword [0x5a40bc]
push dword [esi]
call dword [0x5a40a8]
push eax
push dword [esi]
mov dword [esi + 4], eax
call dword [0x5a40ac]
cmp dword [esi + 0x1844], 0
je 0x46cdd1
push 0
push dword [esi]
call dword [0x5a40a4]
mov dword [esi + 0x1844], 0
xorps xmm0, xmm0
mov dword [esi + 0x1858], 0
xor eax, eax
movups xmmword [esi + 0x185c], xmm0
mov dword [esi + 0x186c], 0
mov dword [esi + 0x1870], 7
mov word [esi + 0x185c], ax
mov dword [esi + 0x1874], eax
lea esi, [edi + 0x1a20]
mov byte [ebp - 4], 0xe
push 0x3c
mov dword [ebp - 0x308], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0052d5e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi], eax
lea ecx, [edi + 0x1a28]
call fcn.00423430
push 0x38
lea eax, [edi + 0x1a3c]
mov dword [edi + 0x1a34], 0xffffffff
push 0
push eax
mov dword [edi + 0x1a38], 0
call fcn.00580daf
mov dword [edi + 0x1a48], 0x18
xorps xmm0, xmm0
mov dword [edi + 0x1a74], 0
add esp, 0xc
movups xmmword [edi + 0x1a78], xmm0
mov dword [edi + 0x1a88], 0
mov dword [edi + 0x1a8c], 0xf
mov byte [edi + 0x1a78], 0
movups xmmword [edi + 0x1a90], xmm0
mov dword [edi + 0x1aa0], 0
mov dword [edi + 0x1aa4], 0xf
mov byte [edi + 0x1a90], 0
mov byte [ebp - 4], 0x12
lea esi, [edi + 0x1aac]
mov dword [edi + 0x1aa8], 0
mov dword [esi], 0xffffffff
push 0xc
mov dword [ebp - 0x308], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0052d5e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea esi, [edi + 0x1ab8]
mov byte [ebp - 4], 0x13
push 0x88
mov dword [ebp - 0x308], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0052d5e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 0x14
xorps xmm0, xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x24], 0
movq qword [0x5e4434], xmm0
mov dword [0x5e443c], 0
mov esi, dword [ebp - 0x2fc]
lea ecx, [edi + 0xf4]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
lea eax, [esi + 0xc]
add ecx, 0xc
cmp ecx, eax
je 0x46cfa5
cmp dword [eax + 0x14], 7
mov edx, dword [eax + 0x10]
jbe 0x46cf9e
mov eax, dword [eax]
push edx
push eax
call fcn.00403a80
lea eax, [esi + 0x24]
lea ecx, [edi + 0x118]
cmp ecx, eax
je 0x46cfc4
cmp dword [eax + 0x14], 7
mov edx, dword [eax + 0x10]
jbe 0x46cfbd
mov eax, dword [eax]
push edx
push eax
call fcn.00403a80
lea eax, [esi + 0x3c]
lea ecx, [edi + 0x130]
cmp ecx, eax
je 0x46cfe3
cmp dword [eax + 0x14], 7
mov edx, dword [eax + 0x10]
jbe 0x46cfdc
mov eax, dword [eax]
push edx
push eax
call fcn.00403a80
lea eax, [esi + 0x54]
lea ecx, [edi + 0x148]
cmp ecx, eax
je 0x46d002
cmp dword [eax + 0x14], 7
mov edx, dword [eax + 0x10]
jbe 0x46cffb
mov eax, dword [eax]
push edx
push eax
call fcn.00403a80
mov ecx, edi
call fcn.00455630
cmp dword [edi + 0x19e0], 0
je 0x46d02a
push 0
push dword [edi + 0x19c]
call dword [0x5a40a4]
mov dword [edi + 0x19e0], 0
push dword [ebp - 0x320]
mov ecx, edi
call fcn.0046c4d0
test eax, eax
jne 0x46d06d
mov esi, dword [ebp - 0x2f4]
push 0x10
push str.error
push str.The_application_terminates_because_an_error_occurred.
push esi
call dword [0x5a4538]
push 0
push 0
push 0x10
push esi
call dword [0x5a45ac]
mov dword [edi + 0x24], 1
jmp 0x46d6ce
mov esi, dword [edi + 0x6c]
test esi, esi
je 0x46d141
push 0x412b20
push 0x412af0
push 0x14
push 0x18
lea eax, [ebp - 0x2f0]
push eax
call fcn.0052d748
mov dword [ebp - 0x110], 0
push 0
push 1
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0x15
push eax
push str.getGameEngineVersion
mov ecx, esi
call fcn.004a5110
test al, al
je 0x46d119
cmp dword [ebp - 0x110], 0
jg 0x46d0c9
xorps xmm0, xmm0
jmp 0x46d0df
cmp dword [ebp - 0x2f0], 3
je 0x46d0d7
xorps xmm0, xmm0
jmp 0x46d0df
movsd xmm0, qword [ebp - 0x2e0]
movsd qword [ebp - 0x300], xmm0
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x16
call fcn.004a4880
push 0x412b20
push 0x14
push 0x18
lea eax, [ebp - 0x2f0]
push eax
call fcn.0052d251
mov byte [ebp - 4], 0x14
movsd xmm0, qword [ebp - 0x300]
jmp 0x46d149
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x17
call fcn.004a4880
push 0x412b20
push 0x14
push 0x18
lea eax, [ebp - 0x2f0]
push eax
call fcn.0052d251
mov byte [ebp - 4], 0x14
movsd xmm0, qword [0x5c71b8]
comisd xmm0, xmmword [0x5c71c8]
mov esi, 0x7ffffffe
movsd qword [0x5e43c0], xmm0
jb 0x46d36b
cmp dword [0x5defc4], 7
lea ecx, [ebp - 0x44]
mov eax, 0x5defb0
cmova eax, dword [0x5defb0]
push eax
call fcn.004037f0
mov byte [ebp - 4], 0x18
mov eax, esi
mov ecx, dword [ebp - 0x34]
sub eax, ecx
cmp eax, 1
jb 0x46dae9
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
push 1
cmova eax, dword [ebp - 0x44]
push 0x5aaa70
push ecx
push eax
push ecx
push dword [ebp - 0x314]
lea ecx, [ebp - 0x5c]
call fcn.00403e60
push str.Save000
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x8c]
call fcn.00408700
add esp, 4
push 0x5bf3c4
mov edx, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x74]
call fcn.00408700
mov esi, eax
add esp, 4
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x46d21b
mov ecx, eax
call fcn.00403a20
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x74]
call fcn.00403a20
lea ecx, [ebp - 0x8c]
call fcn.00403a20
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x18
call fcn.00403a20
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x1c8]
cmova eax, dword [ebp - 0x44]
sub esp, 8
push 0x21
push eax
call fcn.004866c0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x1c8]
add ecx, dword [eax + 4]
call dword [0x5a4288]
test al, al
jne 0x46d34f
push 0
push 4
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x1c8]
call dword [0x5a4374]
xor esi, esi
cmp dword [ebp - 0x2f4], esi
jbe 0x46d327
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x5c], ax
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1c8]
call fcn.004dd1c0
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x1c8]
call fcn.004dd1c0
lea eax, [ebp - 0x74]
mov ecx, 0x5e4604
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.004873a0
lea ecx, [ebp - 0x74]
call fcn.00403a20
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1b
call fcn.00403a20
inc esi
cmp esi, dword [ebp - 0x2f4]
jb 0x46d2a0
lea ecx, [ebp - 0x1b0]
call fcn.00449360
test eax, eax
jne 0x46d34f
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [0x5a42b4]
lea ecx, [ebp - 0x1c8]
call fcn.0046dbe0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00403a20
mov esi, 0x7ffffffe
cmp dword [0x5defc4], 7
mov edx, 0x5defb0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
cmova edx, dword [0x5defb0]
mov ecx, edx
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x2fc], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d3a0
sub ecx, dword [ebp - 0x2fc]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403ce0
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x1c]
sub esi, ecx
cmp esi, 1
jb 0x46daee
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 1
cmova eax, dword [ebp - 0x2c]
push 0x5aaa70
push ecx
push eax
push ecx
push dword [ebp - 0x314]
lea ecx, [ebp - 0x5c]
call fcn.00403e60
push str.Save000
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x74]
call fcn.00408700
add esp, 4
push str.TIPS
mov edx, eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x8c]
call fcn.00408700
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x46d499
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x46d467
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46d45d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46d45d
call dword [0x5a47c4]
push ecx
push edx
call fcn.0052d5b7
add esp, 8
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.00403a20
lea ecx, [ebp - 0x74]
call fcn.00403a20
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1e
call fcn.00403a20
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c8]
cmova eax, dword [ebp - 0x2c]
sub esp, 8
push 0x21
push eax
call fcn.004866c0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x1c8]
add ecx, dword [eax + 4]
call dword [0x5a4288]
test al, al
jne 0x46d560
push 0
push 4
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x1c8]
call dword [0x5a4374]
xor esi, esi
cmp dword [ebp - 0x304], esi
jbe 0x46d560
push 0
push 2
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x1c8]
call dword [0x5a4374]
mov ecx, dword [0x5e45a8]
cmp ecx, dword [0x5e45ac]
je 0x46d54a
mov ax, word [ebp - 0x2f4]
mov word [ecx], ax
add dword [0x5e45a8], 2
jmp 0x46d557
lea eax, [ebp - 0x2f4]
push eax
push ecx
call fcn.004880d0
inc esi
cmp esi, dword [ebp - 0x304]
jb 0x46d512
lea ecx, [ebp - 0x1b0]
call fcn.00449360
test eax, eax
jne 0x46d588
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [0x5a42b4]
lea ecx, [ebp - 0x1c8]
call fcn.0046dbe0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
call fcn.00403a20
push 0x558
call fcn.0052d5e8
add esp, 4
mov dword [ebp - 0x2fc], eax
push dword [ebp - 0x30c]
mov ecx, eax
mov byte [ebp - 4], 0x22
call fcn.00492220
mov dword [0x5e4428], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x23
call fcn.0041b710
cmp dword [ebp - 0xc0], 0
mov esi, dword [ebp - 0x318]
je 0x46d616
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x64]
mov eax, dword [esi]
mov ecx, esi
push 2
call dword [eax + 0x38]
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x40]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x48]
mov eax, dword [0x5e4428]
mov ecx, esi
mov dword [eax + 0x510], esi
mov eax, dword [esi]
call dword [eax + 4]
mov esi, dword [ebp - 0x30c]
mov ecx, dword [0x5e4428]
push esi
call fcn.00498e40
test eax, eax
jne 0x46d6f0
call dword [0x5a420c]
mov ecx, 0x5bf264
mov edx, str.Texture_create_failed.
mov esi, 0x411
cmp ax, si
cmovne ecx, edx
push ecx
push ecx
push 0xffffffffffffffff
push 2
mov ecx, edi
call fcn.004f52d0
mov ecx, dword [ebp - 0x98]
cmp ecx, 7
jbe 0x46d6ce
mov edx, dword [ebp - 0xac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46d6c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46dae3
push ecx
push edx
call fcn.0052d5b7
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d235
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20
push 0x2a4
call fcn.0052d5e8
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 0x24
mov ecx, eax
movss xmm3, dword [0x5c7460]
push esi
call fcn.004e33b0
mov byte [ebp - 4], 0x23
mov ecx, eax
push dword [0x5e43a0]
mov dword [edi + 0xec], eax
push dword [0x5e43b0]
push esi
call fcn.004e34c0
cmp dword [0x5e4458], 0
jne 0x46d7d9
push 0x34
call fcn.0052d5e8
mov edi, eax
add esp, 4
mov dword [ebp - 0x2fc], edi
mov dword [edi], 0
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
lea esi, [edi + 0x2c]
mov byte [ebp - 4], 0x27
push 0x2c
mov dword [ebp - 0x308], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0052d5e8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 0x28
mov eax, dword [edi + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov byte [ebp - 4], 0x23
mov dword [0x5e4458], edi
mov edi, dword [ebp - 0x31c]
push 0x18
call fcn.0052d5e8
mov esi, eax
add esp, 4
mov dword [ebp - 0x2fc], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push dword [ebp - 0x30c]
mov ecx, esi
mov byte [ebp - 4], 0x2b
call fcn.004da3a0
mov byte [ebp - 4], 0x23
mov ecx, edi
mov dword [edi + 0x1a74], esi
call fcn.0047a660
test eax, eax
jne 0x46d84f
call dword [0x5a420c]
mov ecx, 0x5bf2b8
mov edx, str.Initialized_fail_in_lua_script.
jmp 0x46d676
xor eax, eax
lea ecx, [edi + 0xc4]
cmp dword [0x5e43d4], 2
sete al
push eax
sub esp, 0xc
push dword [ebp - 0x320]
call fcn.00449d30
cmp dword [edi + 0xf4], 0
jne 0x46d8b3
cmp dword [edi + 0x12c], 7
lea eax, [edi + 0x118]
jbe 0x46d88a
mov eax, dword [eax]
push 0
push 0
push eax
mov ecx, edi
call fcn.0046f910
test eax, eax
jne 0x46d921
call dword [0x5a420c]
mov ecx, 0x5bf45c
mov edx, str.Script_read_failed.
jmp 0x46d676
call fcn.004550c0
lea eax, [edi + 0x118]
mov ecx, edi
push eax
push dword [ebp - 0x328]
push dword [ebp - 0x30c]
call fcn.00483300
test eax, eax
jne 0x46d921
call dword [0x5a420c]
mov esi, 0x411
mov edx, str.Load_failed.
cmp ax, si
mov ecx, 0x5bf4ac
cmovne ecx, edx
push ecx
push ecx
push 0xffffffffffffffff
push 2
mov ecx, edi
call fcn.004f52d0
mov eax, dword [ebp - 0x98]
cmp eax, 7
jbe 0x46d6ce
mov edx, dword [ebp - 0xac]
push eax
call fcn.00403c00
add esp, 4
jmp 0x46d6ce
cmp dword [0x5e43d4], 2
jne 0x46d941
cmp dword [edi + 0x110], 0
je 0x46d941
lea eax, [edi + 0x100]
mov ecx, edi
push eax
call fcn.0046f670
lea eax, [ebp - 0x324]
xor ecx, ecx
push eax
lea edx, [ebp - 0x2f4]
call fcn.004de840
add esp, 4
cmp dword [ebp - 0x2f4], 0
jl 0x46d96b
mov dword [0x5e45c8], 1
lea eax, [ebp - 0x324]
mov ecx, 2
push eax
lea edx, [ebp - 0x2f4]
call fcn.004de840
add esp, 4
cmp dword [ebp - 0x2f4], 0
jl 0x46d998
mov dword [0x5e45c8], 1
lea eax, [ebp - 0x324]
mov ecx, 1
push eax
lea edx, [ebp - 0x2f4]
call fcn.004de840
add esp, 4
cmp dword [ebp - 0x2f4], 0
jl 0x46d9c5
mov dword [0x5e45cc], 1
call dword [0x5a420c]
mov esi, 0x411
mov edx, str.Task_running.
cmp ax, si
mov ecx, str.ck8k0
cmovne ecx, edx
push ecx
push ecx
push 0
push 0
mov ecx, edi
call fcn.004f52d0
cmp dword [0x5e43d4], 0
mov dword [edi + 0x20], 1
je 0x46da2a
mov eax, dword [edi + 0x30]
test eax, eax
je 0x46da2a
add eax, 0x20
cmp dword [eax + 0x14], 7
jbe 0x46da0f
mov eax, dword [eax]
push 0
push 1
push dword [0x5e4428]
push ecx
lea ecx, [edi + 0x178]
push ecx
sub esp, 8
push eax
call fcn.004212a0
cmp dword [0x5e4378], 0
je 0x46da6c
push 0x40
call fcn.0052d5e8
add esp, 4
mov dword [ebp - 0x328], eax
xor ecx, ecx
mov byte [ebp - 4], 0x2c
cmp dword [0x5e43d4], 2
sete cl
push ecx
push ecx
push str.NameTable.txt
push ecx
mov ecx, eax
call fcn.004044d0
mov byte [ebp - 4], 0x23
mov dword [edi + 0x1aa8], eax
cmp dword [0x5e44d8], 0
jne 0x46daa5
push 4
call fcn.0052d5e8
mov dword [ebp - 0x314], eax
add esp, 4
mov dword [eax], 0x5dfbe0
mov ecx, dword [0x5e44d8]
mov dword [0x5e44d8], eax
test ecx, ecx
je 0x46daa5
push 4
push ecx
call fcn.0052d5b7
add esp, 8
mov ecx, dword [ebp - 0x98]
cmp ecx, 7
jbe 0x46d6ce
mov edx, dword [ebp - 0xac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46d6c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46d6c4
call dword [0x5a47c4]
call fcn.00402a30
call fcn.00402a30
int3