Function at 0x46ceb0
Capabilities:
Access peb ldr_data
Identify system language via api

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 0x59a004
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x318
mov eax, dword [0x5de00c]
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 [0x5e457c]
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.004c5c70
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.0052d778
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.0052d778
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 0x46d0c0
push 0x40
call fcn.0052d778
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 0x46d0a1
shl edx, 2
cmp edx, 0x1000
jb 0x46d091
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x304], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x46e052
mov ecx, dword [ebp - 0x304]
push edx
push ecx
call fcn.0052d747
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.00405bc0
add esp, 4
jmp 0x46d0e4
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 0x46d0e4
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.00455610
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.0052d778
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.004551b0
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.0052d778
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.00420a80
push str.imm32.dll
lea esi, [edi + 0x19c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x1830], eax
test eax, eax
je 0x46d283
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
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 sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00443950
push 0xffffffffffffffff
call dword [sym.imp.IMM32.dll_ImmDisableTextFrameService]
push dword [esi]
call dword [sym.imp.IMM32.dll_ImmGetContext]
push eax
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
cmp dword [esi + 0x1844], 0
je 0x46d311
push 0
push dword [esi]
call dword [sym.imp.IMM32.dll_ImmAssociateContext]
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.0052d778
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi], eax
lea ecx, [edi + 0x1a28]
call fcn.004234f0
push 0x38
lea eax, [edi + 0x1a3c]
mov dword [edi + 0x1a34], 0xffffffff
push 0
push eax
mov dword [edi + 0x1a38], 0
call sub.VCRUNTIME140.dll_memset
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.0052d778
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.0052d778
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 [0x5e4634], xmm0
mov dword [0x5e463c], 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 0x46d4e5
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x46d4de
mov eax, dword [eax]
push edx
push eax
call fcn.004039f0
lea eax, [esi + 0x24]
lea ecx, [edi + 0x118]
cmp ecx, eax
je 0x46d504
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x46d4fd
mov eax, dword [eax]
push edx
push eax
call fcn.004039f0
lea eax, [esi + 0x3c]
lea ecx, [edi + 0x130]
cmp ecx, eax
je 0x46d523
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x46d51c
mov eax, dword [eax]
push edx
push eax
call fcn.004039f0
lea eax, [esi + 0x54]
lea ecx, [edi + 0x148]
cmp ecx, eax
je 0x46d542
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x46d53b
mov eax, dword [eax]
push edx
push eax
call fcn.004039f0
mov ecx, edi
call fcn.00455a10
cmp dword [edi + 0x19e0], 0
je 0x46d56a
push 0
push dword [edi + 0x19c]
call dword [sym.imp.IMM32.dll_ImmAssociateContext]
mov dword [edi + 0x19e0], 0
push dword [ebp - 0x320]
mov ecx, edi
call fcn.0046ca10
test eax, eax
jne 0x46d5ad
mov esi, dword [ebp - 0x2f4]
push 0x10
push str.error
push str.The_application_terminates_because_an_error_occurred.
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x24], 1
jmp 0x46dc42
mov esi, dword [edi + 0x6c]
test esi, esi
je 0x46d681
push 0x412ac0
push 0x412a90
push 0x14
push 0x18
lea eax, [ebp - 0x2f0]
push eax
call fcn.0052d8d8
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.004a5510
test al, al
je 0x46d659
cmp dword [ebp - 0x110], 0
jg 0x46d609
xorps xmm0, xmm0
jmp 0x46d61f
cmp dword [ebp - 0x2f0], 3
je 0x46d617
xorps xmm0, xmm0
jmp 0x46d61f
movsd xmm0, qword [ebp - 0x2e0]
movsd qword [ebp - 0x300], xmm0
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x16
call fcn.004a4c70
push 0x412ac0
push 0x14
push 0x18
lea eax, [ebp - 0x2f0]
push eax
call fcn.0052d3e1
mov byte [ebp - 4], 0x14
movsd xmm0, qword [ebp - 0x300]
jmp 0x46d689
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x17
call fcn.004a4c70
push 0x412ac0
push 0x14
push 0x18
lea eax, [ebp - 0x2f0]
push eax
call fcn.0052d3e1
mov byte [ebp - 4], 0x14
movsd xmm0, qword [0x5c6f80]
comisd xmm0, xmmword [0x5c6f90]
mov esi, SysReAllocString
movsd qword [0x5e45c0], xmm0
jb 0x46d8db
cmp dword [0x5def74], 8
mov edx, 0x5def60
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
cmovae edx, dword [0x5def60]
mov ecx, edx
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x2fc], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d6d7
sub ecx, dword [ebp - 0x2fc]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00403d10
mov byte [ebp - 4], 0x18
mov eax, esi
mov ecx, dword [ebp - 0x34]
sub eax, ecx
cmp eax, 1
jb 0x46e058
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 1
cmovae eax, dword [ebp - 0x44]
push 0x5aaa60
push ecx
push eax
push ecx
push dword [ebp - 0x314]
lea ecx, [ebp - 0x5c]
call fcn.00403e90
push 0x5befb4
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x8c]
call fcn.00408550
add esp, 4
push 0x5bf054
mov edx, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x74]
call fcn.00408550
mov esi, eax
add esp, 4
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x46d78f
mov ecx, eax
call fcn.00403990
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.00403990
lea ecx, [ebp - 0x8c]
call fcn.00403990
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x18
call fcn.00403990
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x44]
sub esp, 8
push 0x21
push eax
call fcn.00486c60
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x1c8]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
test al, al
jne 0x46d8bf
push 0
push 4
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x1c8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
xor esi, esi
cmp dword [ebp - 0x2f4], esi
jbe 0x46d897
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.004dd790
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x1c8]
call fcn.004dd790
lea eax, [ebp - 0x74]
mov ecx, 0x5e4804
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.004878d0
lea ecx, [ebp - 0x74]
call fcn.00403990
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1b
call fcn.00403990
inc esi
cmp esi, dword [ebp - 0x2f4]
jb 0x46d810
lea ecx, [ebp - 0x1b0]
call fcn.00449460
test eax, eax
jne 0x46d8bf
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x1c8]
call fcn.0046e150
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00403990
mov esi, SysReAllocString
cmp dword [0x5def74], 8
mov edx, 0x5def60
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
cmovae edx, dword [0x5def60]
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 0x46d910
sub ecx, dword [ebp - 0x2fc]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403d10
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x1c]
sub esi, ecx
cmp esi, 1
jb 0x46e05d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push 0x5aaa60
push ecx
push eax
push ecx
push dword [ebp - 0x314]
lea ecx, [ebp - 0x5c]
call fcn.00403e90
push 0x5befb4
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x74]
call fcn.00408550
add esp, 4
push str.TIPS
mov edx, eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x8c]
call fcn.00408550
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x46da09
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x46d9d7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46d9cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46d9cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0052d747
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.00403990
lea ecx, [ebp - 0x74]
call fcn.00403990
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1e
call fcn.00403990
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x2c]
sub esp, 8
push 0x21
push eax
call fcn.00486c60
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x1c8]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
test al, al
jne 0x46dad4
push 0
push 4
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x1c8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
xor esi, esi
cmp dword [ebp - 0x304], esi
jbe 0x46dad4
push 0
push 2
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x1c8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov ecx, dword [0x5e47a8]
cmp ecx, dword [0x5e47ac]
je 0x46dabe
mov ax, word [ebp - 0x2f4]
mov word [ecx], ax
add dword [0x5e47a8], 2
jmp 0x46dacb
lea eax, [ebp - 0x2f4]
push eax
push ecx
call fcn.00488560
inc esi
cmp esi, dword [ebp - 0x304]
jb 0x46da86
lea ecx, [ebp - 0x1b0]
call fcn.00449460
test eax, eax
jne 0x46dafc
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x1c8]
call fcn.0046e150
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
call fcn.00403990
push 0x558
call fcn.0052d778
add esp, 4
mov dword [ebp - 0x2fc], eax
push dword [ebp - 0x30c]
mov ecx, eax
mov byte [ebp - 4], 0x22
call fcn.00492590
mov dword [0x5e4628], 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.0041b700
cmp dword [ebp - 0xc0], 0
mov esi, dword [ebp - 0x318]
je 0x46db8a
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 [0x5e4628]
mov ecx, esi
mov dword [eax + 0x510], esi
mov eax, dword [esi]
call dword [eax + 4]
mov esi, dword [ebp - 0x30c]
mov ecx, dword [0x5e4628]
push esi
call fcn.004992d0
test eax, eax
jne 0x46dc64
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x5bf194
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.004f5960
mov ecx, dword [ebp - 0x98]
cmp ecx, 8
jb 0x46dc42
mov edx, dword [ebp - 0xac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46dc38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e052
push ecx
push edx
call fcn.0052d747
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.0052d3c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20
push 0x2a4
call fcn.0052d778
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 0x24
mov ecx, eax
movss xmm3, dword [0x5c7228]
push esi
call fcn.004e3990
mov byte [ebp - 4], 0x23
mov ecx, eax
push dword [0x5e45a0]
mov dword [edi + 0xec], eax
push dword [0x5e45b0]
push esi
call fcn.004e3aa0
cmp dword [0x5e4658], 0
jne 0x46dd4d
push 0x34
call fcn.0052d778
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.0052d778
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 [0x5e4658], edi
mov edi, dword [ebp - 0x31c]
push 0x18
call fcn.0052d778
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.004da970
mov byte [ebp - 4], 0x23
mov ecx, edi
mov dword [edi + 0x1a74], esi
call fcn.0047ab80
test eax, eax
jne 0x46ddc3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x5bf1e8
mov edx, str.Initialized_fail_in_lua_script.
jmp 0x46dbea
xor eax, eax
lea ecx, [edi + 0xc4]
cmp dword [0x5e45d4], 2
sete al
push eax
sub esp, 0xc
push dword [ebp - 0x320]
call fcn.00449e00
cmp dword [edi + 0xf4], 0
jne 0x46de5b
cmp dword [edi + 0x12c], 8
lea eax, [edi + 0x118]
jb 0x46ddfe
mov eax, dword [eax]
push 0
push 0
push eax
mov ecx, edi
call fcn.0046fe20
test eax, eax
jne 0x46de90
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x5bf138
mov edx, str.Script_read_failed.
mov esi, 0x411
cmp ax, si
cmovne ecx, edx
push ecx
push ecx
push 0xffffffffffffffff
push 2
mov ecx, edi
call fcn.004f5960
mov eax, dword [ebp - 0x98]
cmp eax, 8
jb 0x46dc42
inc eax
push eax
push dword [ebp - 0xac]
call fcn.00403c70
jmp 0x46dc42
call fcn.004553e0
lea eax, [edi + 0x118]
mov ecx, edi
push eax
push dword [ebp - 0x328]
push dword [ebp - 0x30c]
call fcn.00483820
test eax, eax
jne 0x46de90
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x5bf2a0
mov edx, str.Load_failed.
jmp 0x46de22
cmp dword [0x5e45d4], 2
jne 0x46deb0
cmp dword [edi + 0x110], 0
je 0x46deb0
lea eax, [edi + 0x100]
mov ecx, edi
push eax
call fcn.0046fb80
lea eax, [ebp - 0x324]
xor ecx, ecx
push eax
lea edx, [ebp - 0x2f4]
call fcn.004dee00
add esp, 4
cmp dword [ebp - 0x2f4], 0
jl 0x46deda
mov dword [0x5e47c8], 1
lea eax, [ebp - 0x324]
mov ecx, 2
push eax
lea edx, [ebp - 0x2f4]
call fcn.004dee00
add esp, 4
cmp dword [ebp - 0x2f4], 0
jl 0x46df07
mov dword [0x5e47c8], 1
lea eax, [ebp - 0x324]
mov ecx, 1
push eax
lea edx, [ebp - 0x2f4]
call fcn.004dee00
add esp, 4
cmp dword [ebp - 0x2f4], 0
jl 0x46df34
mov dword [0x5e47cc], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
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.004f5960
cmp dword [0x5e45d4], 0
mov dword [edi + 0x20], 1
je 0x46df99
mov eax, dword [edi + 0x30]
test eax, eax
je 0x46df99
add eax, 0x20
cmp dword [eax + 0x14], 8
jb 0x46df7e
mov eax, dword [eax]
push 0
push 1
push dword [0x5e4628]
push ecx
lea ecx, [edi + 0x178]
push ecx
sub esp, 8
push eax
call fcn.00421400
cmp dword [0x5e4578], 0
je 0x46dfdb
push 0x40
call fcn.0052d778
add esp, 4
mov dword [ebp - 0x328], eax
xor ecx, ecx
mov byte [ebp - 4], 0x2c
cmp dword [0x5e45d4], 2
sete cl
push ecx
push ecx
push str.NameTable.txt
push ecx
mov ecx, eax
call fcn.004043c0
mov byte [ebp - 4], 0x23
mov dword [edi + 0x1aa8], eax
cmp dword [0x5e46d8], 0
jne 0x46e014
push 4
call fcn.0052d778
mov dword [ebp - 0x314], eax
add esp, 4
mov dword [eax], 0x5dfb90
mov ecx, dword [0x5e46d8]
mov dword [0x5e46d8], eax
test ecx, ecx
je 0x46e014
push 4
push ecx
call fcn.0052d747
add esp, 8
mov ecx, dword [ebp - 0x98]
cmp ecx, 8
jb 0x46dc42
mov edx, dword [ebp - 0xac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46dc38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46dc38
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00402990
call fcn.00402990
int3