Function at 0x428d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4c23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x40]
push ebp
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xdc]
mov ecx, eax
xor ebp, ebp
xor edx, edx
xor esi, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], esi
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], eax
jle 0x428fb8
push ebx
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0xe0]
push 0x18
mov ecx, eax
mov dword [esp + 0x18], eax
call dword [sym.imp.DMDataTk53.dll_public:_int___thiscall_eaiEntity::isOfType_enum_eaiEntity::TypeID_const]
test eax, eax
je 0x428fc9
mov eax, dword [esp + 0x14]
push 0x20
mov dword [esp + 0x58], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebp
mov byte [esp + 0x48], 1
je 0x428e07
mov edi, dword [esp + 0x54]
lea ecx, [esi + 0x10]
push ebp
call fcn.0040f690
mov dword [esi], 0x4a6aa4
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0x1c], 1
mov dword [esi + 0xc], edi
jmp 0x428e09
xor esi, esi
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x48], 0
push ecx
call fcn.00429820
add esp, 4
test eax, eax
je 0x428e24
mov dword [esi + 0x1c], ebp
jmp 0x428e75
lea edx, [esp + 0x20]
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx]
lea eax, [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.00429180
add esp, 0x10
cmp eax, ebp
je 0x428e75
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x428e63
mov ecx, dword [esp + 0x54]
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x428e75
mov ecx, dword [esp + 0x54]
push eax
mov edx, dword [ecx]
call dword [edx + 0x44]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
lea edx, [esp + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0x48]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x40]
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x428eae
call dword [sym.imp.DMDataTk53.dll_public:_void___thiscall_eaiEntity::ref_void_const]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x428ec3
call dword [sym.imp.DMDataTk53.dll_public:_void___thiscall_eaiEntity::ref_void_const]
mov dword [esp + 0x24], esi
mov esi, dword [ebx]
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esi + 4]
call fcn.00429a40
mov edi, dword [esi + 0x10]
lea eax, [esp + 0x54]
inc edi
push ebx
push eax
mov dword [esi + 0x10], edi
call fcn.00428d40
mov esi, dword [ebx]
add esp, 8
cmp dword [esi + 8], ebp
je 0x428f9a
mov ebp, dword [esi + 0x10]
lea edi, [esi + 4]
push ebp
mov ecx, edi
call fcn.0040f780
mov ecx, dword [edi]
mov eax, dword [esi + 8]
dec eax
mov ebp, dword [ecx + ebp*4]
push eax
mov ecx, edi
call fcn.00429bb0
mov ecx, dword [esi + 0x10]
dec ecx
test ebp, ebp
mov dword [esi + 0x10], ecx
je 0x428f98
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x428f7f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x428f8f
mov eax, dword [ebp + 0x14]
xor esi, esi
test eax, eax
jle 0x428f8f
lea edi, [ebp + 0x10]
push esi
mov ecx, edi
call fcn.0040f780
mov edx, dword [edi]
cmp dword [edx + esi*4], 0
je 0x428f75
push esi
mov ecx, edi
call fcn.0040f780
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [edx + esi*4]
mov eax, dword [ecx]
push edx
call dword [eax + 0xcc]
push esi
mov ecx, edi
call fcn.004298b0
mov ecx, dword [eax]
call dword [sym.imp.DMDataTk53.dll_public:_void___thiscall_eaiEntity::unref_void_const]
mov eax, dword [ebp + 0x14]
inc esi
cmp esi, eax
jl 0x428f3c
jmp 0x428f8f
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.00429f50
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x428d9c
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
pop ebx
lea eax, [edx - 1]
cmp eax, ebp
mov dword [esp + 0xc], eax
jl 0x4290e2
jmp 0x429019
mov edx, dword [ebx]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.00429180
add esp, 0x10
cmp eax, ebp
je 0x428f9a
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x429003
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x3c]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x428f9a
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x44]
jmp 0x428f9a
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp eax, ebp
setle cl
dec ecx
mov edi, eax
and eax, ecx
cmp eax, edx
jl 0x4290b1
cmp eax, esi
jl 0x429093
lea ecx, [esi + esi]
lea esi, [eax + 1]
cmp esi, ecx
jle 0x42903d
mov ecx, esi
push 1
push 1
push ecx
lea ecx, [esp + 0x3c]
call fcn.0042a300
test eax, eax
jne 0x4290ad
call sub.Jt52.dll_public:_static_void___cdecl_JtErrorState::rethrowError_void_
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x4c]
mov eax, dword [eax]
push eax
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 0xe0]
push eax
call fcn.00429850
mov eax, dword [esp + 0x10]
add esp, 4
lea ecx, [esp + 0x30]
mov esi, eax
push eax
call fcn.0042a160
test eax, eax
je 0x4290be
cmp esi, ebp
jl 0x4290be
mov ecx, dword [esp + 0x30]
lea eax, [ecx + esi*4]
jmp 0x4290c2
lea esi, [eax + 1]
mov eax, dword [esp + 0x30]
lea ecx, [eax + esi*4]
lea eax, [eax + edx*4]
cmp eax, ecx
je 0x4290ad
mov dword [eax], ebp
add eax, 4
cmp eax, ecx
jne 0x4290a4
mov dword [esp + 0x34], esi
cmp edi, ebp
jl 0x429054
mov edx, dword [esp + 0x30]
lea eax, [edx + edi*4]
jmp 0x429058
mov eax, dword [esp + 0x30]
mov ecx, dword [edi]
mov eax, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 0xd4]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x38]
dec eax
mov dword [esp + 0xc], eax
jns 0x429015
cmp esi, ebp
mov dword [esp + 0x44], 0xffffffff
jle 0x429168
mov ecx, dword [esp + 0x30]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, ebp
jle 0x429168
cmp dword [0x4ddf28], ebp
je 0x42910f
xor eax, eax
jmp 0x429154
mov eax, dword [sym.imp.Jt52.dll_class_JtPlatform__JtSingleton_class_JtPlatform_::_pInstance]
cmp dword [eax], ebp
jne 0x429152
push eax
mov dword [0x4ddf28], 1
call dword [sym.imp.Jt52.dll_public:_static_void___cdecl_JtPlatform::_createInstance_class_JtPlatform___]
mov eax, dword [sym.imp.Jt52.dll_class_JtPlatform__JtSingleton_class_JtPlatform_::_pInstance]
add esp, 4
mov ecx, dword [eax]
cmp ecx, ebp
je 0x42914c
mov edx, dword [ecx]
mov dword [esp + 0x4c], ecx
call dword [edx]
mov ecx, dword [esp + 0x4c]
lock inc dword [ecx + 4]
mov eax, dword [sym.imp.Jt52.dll_class_JtPlatform__JtSingleton_class_JtPlatform_::_pInstance]
dec dword [0x4ddf28]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
push ebp
lea edx, [ecx*4]
mov ecx, eax
push edx
call sub.Jt52.dll_public:_unsigned_int___thiscall_JtPlatform::removeFromMemory_unsigned_long_long_unsigned___int64__
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret