Function at 0x417c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4548fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push ebp
mov ebp, dword [esp + 0x2a0]
push esi
push edi
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 4]
mov esi, dword [eax + 0x10]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x18], esi
call dword [edx + 4]
add eax, 8
mov ecx, ebp
mov dword [esp + 0x48], eax
call fcn.0042d140
mov ecx, dword [eax + 0x158]
mov eax, dword [ebp + 0x24]
lea edi, [ebp + 0x1c]
cmp esi, eax
mov dword [esp + 0x4c], ecx
jne 0x417cd3
test esi, esi
jne 0x417d3b
mov edx, dword [edi + 4]
test edx, edx
je 0x417ce3
push eax
push ecx
mov ecx, edi
call fcn.00436600
test esi, esi
mov dword [edi + 8], esi
jbe 0x417d3b
mov eax, dword [esp + 0x4c]
push 0
push eax
push esi
mov ecx, edi
call fcn.0041f5f0
test eax, eax
mov dword [edi + 4], eax
jne 0x417d3b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2b4]
mov dword [edi + 8], eax
push ecx
mov edi, str.m_KeyFrames.SetSize2_failed_...
or ecx, 0xffffffff
mov dword [edx], 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.m_KeyFrames.SetSize2_failed_...
push ecx
push str.m_KeyFrames.SetSize2_failed_...
lea ecx, [edx + 4]
call fcn.00412190
jmp 0x418757
mov ebx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x2a4]
mov edx, dword [esp + 0x2a0]
mov dword [ebp + 4], eax
test ebx, ebx
mov dword [ebp + 8], edx
je 0x418644
mov esi, dword [eax + 0xe0]
lea eax, [esp + 0x1f]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x29c], 0
call fcn.00409960
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x298], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
lea ecx, [esp + 0x44]
call fcn.00411590
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x28]
sub ecx, edx
xor edi, edi
sar ecx, 2
mov byte [esp + 0x298], 2
je 0x417e0c
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + edi*4]
lea eax, [esp + 0x68]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], 3
push ecx
push eax
call fcn.0041d220
add esp, 8
lea ecx, [esp + 0x68]
mov byte [esp + 0x12], al
mov byte [esp + 0x298], 2
call fcn.00408340
mov al, byte [esp + 0x12]
test al, al
jne 0x417edf
mov edx, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x28]
sub edx, esi
inc edi
sar edx, 2
cmp edi, edx
jb 0x417db5
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], 0
call fcn.0040a280
mov ecx, dword [esp + 0x2a4]
lea edx, [esp + 0x13]
push edx
mov dword [esp + 0x29c], 4
mov esi, dword [ecx + 0xe0]
lea ecx, [esp + 0x60]
call fcn.00409960
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x298], 5
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
lea ecx, [esp + 0x64]
call fcn.00411590
mov esi, dword [esp + 0x2b0]
xor edi, edi
mov byte [esp + 0x298], 6
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
sub eax, edx
sar eax, 2
je 0x417efa
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
lea eax, [esp + 0x68]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x298], 7
push ecx
push eax
call fcn.0041d220
add esp, 8
lea ecx, [esp + 0x68]
mov byte [esp + 0x12], al
mov byte [esp + 0x298], 6
call fcn.00408340
mov al, byte [esp + 0x12]
test al, al
jne 0x417eee
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
sub edx, eax
inc edi
sar edx, 2
cmp edi, edx
jb 0x417e8a
jmp 0x417efa
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + edi*4]
mov dword [esp + 0x14], eax
jmp 0x417e14
mov esi, dword [esi + 0x28]
mov eax, dword [esi + edi*4]
mov dword [esp + 0x24], eax
jmp 0x417f02
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x298], 4
call fcn.0040a280
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
test eax, eax
mov dword [esp + 0x298], ecx
je 0x418131
cmp dword [eax + 0x10], 1
jne 0x418131
mov esi, dword [eax + 0x1c]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov eax, dword [esi]
push eax
call fcn.0042d140
mov ecx, eax
call fcn.0042f760
test eax, eax
jne 0x418071
mov ebp, dword [esp + 0x2b4]
mov dword [ebp], 1
lea edx, [esp + 0x13]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0x29c], 8
call fcn.00409960
mov edi, str._could_not_find_piece_for_anim_node.
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x298], 9
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str._could_not_find_piece_for_anim_node.
push ecx
push str._could_not_find_piece_for_anim_node.
lea ecx, [esp + 0x44]
call fcn.00411590
mov eax, dword [esi + 0x18]
mov bl, 0xb
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x29c], bl
call fcn.00410ff0
lea ecx, [esp + 0x50]
call fcn.0041a9e0
mov eax, str.ModelNodeToAnimNode
mov byte [esp + 0x298], 0xc
test eax, eax
je 0x417fda
push eax
jmp 0x417fdf
push str.error
lea ecx, [esp + 0x54]
call fcn.0041aa50
mov eax, dword [0x4644f0]
test eax, eax
je 0x418010
mov ecx, dword [esp + 0x50]
push ecx
call eax
mov eax, dword [ebp + 4]
push eax
call dword [0x4644f0]
push 0x4610ac
call dword [0x4644f0]
add esp, 0xc
mov ecx, dword [0x4644ec]
mov ebp, dword [ebp + 4]
test ecx, ecx
jne 0x418023
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
mov edx, dword [esp + 0x50]
mov esi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push ebp
push 0x4610a8
push edx
call esi
mov ecx, eax
call esi
mov ecx, eax
call esi
push eax
call dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
add esp, 4
lea ecx, [esp + 0x50]
mov byte [esp + 0x298], bl
call fcn.00408340
lea ecx, [esp + 0x3c]
mov dword [esp + 0x298], 0xffffffff
call fcn.0040a280
jmp 0x418757
mov eax, dword [esp + 0x28]
mov ecx, ebp
mov dword [ebp + 0x30], eax
call fcn.0042d140
mov ecx, dword [eax + 0x158]
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x418644
xor esi, esi
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
mov dword [esp + 0x298], 0xd
je 0x4180ca
mov ecx, eax
call fcn.0041aad0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x10], edx
jmp 0x4180cc
xor eax, eax
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x298], 0xffffffff
mov dword [esi + ecx + 0x20], eax
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + edx + 0x20]
push eax
push edi
push ecx
call fcn.00417930
mov ecx, dword [ebp + 0x20]
mov eax, esi
add eax, ecx
xor ecx, ecx
add esp, 0xc
inc edi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x20]
mov dword [esi + edx + 0xc], ecx
mov dword [esi + edx + 0x10], ecx
lea eax, [esi + edx + 0xc]
add esi, 0x24
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0x3f800000
cmp edi, dword [esp + 0x18]
jl 0x418099
jmp 0x418644
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41852e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
test eax, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3f800000
jle 0x418644
xor edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x20]
push eax
mov esi, dword [edx + ecx]
lea ecx, [esp + 0x88]
lea edx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push esi
call fcn.00420830
test eax, eax
je 0x418242
lea ecx, [esp + 0x98]
call fcn.0041f590
lea ecx, [esp + 0xa8]
call fcn.0041f590
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x98]
lea ecx, [esp + 0xb8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00420960
mov edx, dword [esp + 0x84]
lea eax, [esp + 0xa8]
lea ecx, [esp + 0xc4]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00420960
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xa8]
push eax
lea edx, [esp + 0xc8]
push ecx
lea eax, [esp + 0xa0]
push edx
lea ecx, [esp + 0xc4]
push eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.00418770
add esp, 0x1c
jmp 0x4184cb
lea ecx, [esp + 0x78]
mov dword [esp + 0x74], 0
call fcn.0041a9e0
mov edi, str.bad_key_frame
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, str.bad_key_frame
mov dword [esp + 0x29c], 0xe
push ecx
push str.bad_key_frame
lea ecx, [esp + 0x84]
call fcn.00412190
lea eax, [esp + 0x190]
push 0x100
push eax
push esi
mov byte [esp + 0x2a4], 0xf
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea ecx, [esp + 0x13]
mov esi, eax
push ecx
lea ecx, [esp + 0x90]
call fcn.00409960
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x298], 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
lea ecx, [esp + 0x94]
call fcn.00411590
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
push edx
push eax
push ecx
lea ecx, [esp + 0x84]
mov byte [esp + 0x2a4], 0x11
call fcn.00412200
lea ecx, [esp + 0x8c]
mov byte [esp + 0x298], 0xf
call fcn.0040a280
mov edx, dword [esp + 0x2a4]
lea eax, [esp + 0x1f]
push eax
lea ecx, [esp + 0x60]
mov esi, dword [edx + 0xe0]
mov byte [esp + 0x29c], 0x12
call fcn.00409960
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x298], 0x13
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
lea ecx, [esp + 0x64]
call fcn.00411590
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x298], 0x14
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
lea ecx, [esp + 0x84]
call fcn.00412200
lea ecx, [esp + 0x5c]
mov byte [esp + 0x298], 0x12
call fcn.0040a280
push str._in_AnimSet_:
lea ecx, [esp + 0x7c]
mov byte [esp + 0x29c], 0xe
call fcn.00410ff0
lea ecx, [esp + 0x12]
push ecx
mov ecx, ebx
call fcn.0041f5d0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x29c], 0x15
call fcn.00409960
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 0x17
call fcn.00411fb0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x2a4], 0x18
call fcn.00412200
lea ecx, [esp + 0x3c]
mov byte [esp + 0x298], 0xe
call fcn.0040a280
lea ecx, [esp + 0x50]
call fcn.0041a9e0
mov ecx, str.in_ModelNodeToAnimNode
mov byte [esp + 0x298], 0x19
test ecx, ecx
je 0x418432
push ecx
jmp 0x418437
push str.error
lea ecx, [esp + 0x54]
call fcn.0041aa50
mov eax, dword [0x4644f0]
test eax, eax
je 0x418469
mov edx, dword [esp + 0x50]
push edx
call eax
mov eax, dword [esp + 0x7c]
push eax
call dword [0x4644f0]
push 0x4610ac
call dword [0x4644f0]
add esp, 0xc
mov ecx, dword [0x4644ec]
test ecx, ecx
jne 0x418479
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push edx
push 0x4610a8
push eax
call esi
mov ecx, eax
call esi
mov ecx, eax
call esi
push eax
call dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
add esp, 4
lea ecx, [esp + 0x50]
mov byte [esp + 0x298], 0xe
call fcn.00408340
lea ecx, [esp + 0x78]
mov dword [esp + 0x298], 0xffffffff
call fcn.00408340
mov edi, dword [esp + 0x18]
mov esi, dword [ebp + 0x20]
mov ecx, dword [esp + 0x68]
mov eax, edi
add eax, esi
mov dword [eax], ecx
mov edx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x2c]
lea eax, [edi + edx + 0xc]
add edi, 0x24
mov dword [esp + 0x18], edi
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add edx, 0x14
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
jne 0x418177
jmp 0x418644
mov esi, dword [ebp + 4]
cmp dword [esi + 0x28], ecx
je 0x4185b0
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x4185b0
lea ecx, [esp + 0xd0]
call fcn.0041cfe0
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0x28]
mov edx, dword [eax + 0x24]
mov eax, dword [edx + ecx*4]
test eax, eax
je 0x418591
add esi, 0x30
lea ecx, [esp + 0x150]
push esi
push ecx
lea ecx, [eax + 0x70]
call fcn.0041dba0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
lea esi, [esp + 0xd0]
jmp 0x4185b8
add esi, 0x30
mov ecx, 0x10
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
lea esi, [esp + 0xd0]
jmp 0x4185b8
add esi, 0x30
mov ecx, 0x10
lea edx, [esp + 0x110]
lea edi, [esp + 0x110]
lea eax, [esp + 0x2c]
push edx
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x3f800000
call fcn.0040f5a0
mov edx, dword [esp + 0x20]
add esp, 8
test edx, edx
jle 0x418644
xor ecx, ecx
mov esi, 0xc1200000
mov edi, dword [ebp + 0x20]
mov eax, ecx
add eax, edi
mov dword [eax], 0
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov eax, dword [ebp + 0x20]
mov edi, dword [esp + 0x2c]
lea eax, [ecx + eax + 0xc]
add ecx, 0x24
dec edx
mov dword [eax], edi
mov edi, dword [esp + 0x30]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x34]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x38]
mov dword [eax + 0xc], edi
jne 0x418605
mov ecx, dword [esp + 0x2a4]
mov edx, dword [esp + 0x4c]
push edx
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.0041f730
test eax, eax
jne 0x4186a5
mov esi, dword [esp + 0x2b4]
mov edi, str.m_Children.SetSizeInit4_failed_...
or ecx, 0xffffffff
mov edx, dword [esp + 0x20]
mov dword [esi], 3
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.m_Children.SetSizeInit4_failed_...
push ecx
push str.m_Children.SetSizeInit4_failed_...
lea ecx, [esi + 4]
call fcn.00412190
jmp 0x418749
mov eax, dword [esp + 0x2a4]
xor esi, esi
mov ecx, dword [eax + 0x20]
test ecx, ecx
jle 0x418757
mov edx, dword [ebp]
push ebp
mov ecx, ebp
call dword [edx + 4]
push eax
mov eax, dword [esp + 0x54]
push 1
push 0
push eax
call fcn.0041d5e0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41872f
mov eax, dword [esp + 0x2a4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x2b4]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x2b0]
mov eax, dword [eax + 0x1c]
push ecx
push edx
push ebx
mov ecx, dword [eax + esi*4]
push edi
push ecx
push ebp
call fcn.00417c70
mov edx, dword [esp + 0x2cc]
add esp, 0x18
cmp dword [edx], 0
jne 0x418757
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2a4]
mov dword [eax + esi*4], edi
mov eax, dword [ecx + 0x20]
inc esi
cmp esi, eax
jl 0x4186b9
jmp 0x418757
mov esi, dword [esp + 0x2b4]
push str._LNew_2P_failed_Out_of_memory
lea ecx, [esi + 4]
mov dword [esi], 3
call fcn.0041aa50
push 1
push str.ModelNodeToAnimNode
mov ecx, esi
call fcn.00420e40
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28c
ret