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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x5c5bf0]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebx + 4]
mov esi, edi
mov dword [esp + 0x20], eax
test esi, esi
je 0x4059d6
nop
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esi + 4]
push edx
call fcn.0043cea0
add esp, 8
test eax, eax
je 0x4059cc
mov eax, dword [ebp + 0xc]
cmp dword [esi], eax
je 0x4059ff
mov esi, dword [esi + 0x42c]
test esi, esi
jne 0x4059b0
cmp dword [ebx + 4], 0
jne 0x405a17
push 0x430
call fcn.00548137
add esp, 4
test eax, eax
je 0x405a0a
mov ecx, eax
call fcn.00404ef0
mov esi, eax
mov dword [ebx + 4], eax
mov dword [esp + 0x18], esi
jmp 0x405a57
inc dword [esi + 0x108]
jmp 0x406ae4
xor eax, eax
mov esi, eax
mov dword [ebx + 4], eax
mov dword [esp + 0x18], esi
jmp 0x405a57
cmp dword [edi + 0x42c], 0
je 0x405a2f
mov edi, dword [edi + 0x42c]
cmp dword [edi + 0x42c], 0
jne 0x405a20
push 0x430
call fcn.00548137
add esp, 4
test eax, eax
je 0x405a49
mov ecx, eax
call fcn.00404ef0
jmp 0x405a4b
xor eax, eax
mov dword [edi + 0x42c], eax
mov esi, eax
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, esi
sub ecx, eax
mov dword [esi], edx
lea edx, [ecx + 4]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405a70
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0
push 0xfa0
mov dword [esi + 0x104], edx
inc dword [ebx]
push eax
mov ecx, 0x5c8360
call fcn.00450830
mov edi, eax
mov dword [esp + 0x74], edi
cmp edi, 0xffffffff
jne 0x405aec
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x134]
push str.Open_mesh_file__s_error_
push edx
call fcn.00547a2a
push 0
lea eax, [esp + 0x140]
push 0x56562c
push eax
call fcn.0043d970
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00547aa7
mov esp, ebp
pop ebp
ret 0x10
push edi
push 1
push 0x40
add esi, 0x14c
push esi
mov ecx, 0x5c8360
call fcn.00450720
push edi
push 1
push 0x40
lea ecx, [esp + 0xbc]
push ecx
mov ecx, 0x5c8360
call fcn.00450720
push edi
push 1
push 0x40
lea edx, [esp + 0xfc]
push edx
mov ecx, 0x5c8360
call fcn.00450720
mov ebx, 0x10
mov eax, dword [esi]
test eax, eax
je 0x405c46
xor ecx, ecx
add eax, eax
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esi]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
mov dword [esi + 0x10c], eax
call fcn.005479b0
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esi]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
mov dword [esi + 0x14c], eax
call fcn.005479b0
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esi]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
mov dword [esi + 0x18c], eax
call fcn.005479b0
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esi]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
mov dword [esi + 0x1cc], eax
call fcn.005479b0
mov edx, dword [esi]
mov eax, dword [esi + 0x10c]
add esp, 0x40
push edi
push edx
push 0x18
push eax
mov ecx, 0x5c8360
call fcn.00450720
mov ecx, dword [esi]
mov edx, dword [esi + 0x18c]
push edi
push ecx
push 0xc
push edx
mov ecx, 0x5c8360
call fcn.00450720
mov eax, dword [esi]
mov ecx, dword [esi + 0x1cc]
push edi
push eax
push 4
push ecx
mov ecx, 0x5c8360
call fcn.00450720
add esi, 4
sub ebx, 1
jne 0x405b35
mov dword [esp + 0x10], ebx
jmp 0x405c60
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov eax, dword [edx + eax*4 + 0x14c]
test eax, eax
je 0x406999
mov esi, dword [esp + 0x10]
xor edi, edi
mov ecx, edx
mov ecx, dword [ecx]
mov dword [esp + 0x64], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x14], ecx
cmp esi, 2
jne 0x405cc1
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 3
lea edx, [edi + 4]
jmp 0x405de9
mov edx, 4
cmp esi, 3
jne 0x405cdb
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
jmp 0x405d8c
cmp esi, edx
jne 0x405cef
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
jmp 0x405e04
cmp esi, 5
jne 0x405d08
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], 3
mov dword [esp + 0x1c], ecx
jmp 0x405de9
cmp esi, 0xa
jne 0x405d1e
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], pe_nt_image_headers32
jmp 0x405e04
cmp esi, 0xb
jne 0x405d33
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
jmp 0x405e04
cmp esi, 0xc
jne 0x405d49
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], pe_nt_image_headers32
jmp 0x405e04
cmp esi, 0xd
jne 0x405d5f
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], pe_nt_image_headers32
jmp 0x405e04
cmp esi, 0xe
jne 0x405d75
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], pe_nt_image_headers32
jmp 0x405e04
cmp esi, 0xf
jne 0x405d88
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], pe_nt_image_headers32
jmp 0x405e04
cmp ecx, edi
jne 0x405da6
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esp + 0x68], eax
jmp 0x405e6d
cmp ecx, 1
jne 0x405dc5
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esp + 0x74], eax
jmp 0x405e6d
cmp ecx, 2
jne 0x405de4
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esp + 0x64], eax
jmp 0x405e6d
cmp ecx, 3
jne 0x405e00
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esp + 0x4c], eax
jmp 0x405e6d
cmp ecx, edx
jne 0x405e1b
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esp + 0x5c], eax
jmp 0x405e6d
cmp ecx, 5
jne 0x405e37
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esp + 0x3c], eax
jmp 0x405e6d
cmp ecx, 6
jne 0x405e53
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esp + 0x40], eax
jmp 0x405e6d
cmp ecx, 7
jne 0x405e70
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esp + 0x70], eax
add esp, 4
mov eax, dword [esp + esi*4 + 0xb0]
cmp eax, edi
je 0x4062f8
cmp dword [esp + 0x14], 7
jne 0x405ec8
xor ecx, ecx
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + ecx*4 + 0xb4]
push edx
push 0x28
push eax
mov ecx, 0x5c8360
call fcn.00450720
jmp 0x4062f8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp dword [ecx + edx*4 + 0x14c], 0
mov dword [esp + 0x24], 0
jle 0x4062f8
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
sub ecx, esi
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x60]
sub ecx, esi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x58]
sub ecx, esi
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x38]
sub ecx, esi
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x3c]
sub ecx, esi
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x405f4b
mov edx, 0x20
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esp + 0x6c]
jmp 0x406013
cmp ecx, 1
jne 0x405f6d
xor ecx, ecx
mov edx, 0x24
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov dword [esi], eax
jmp 0x406016
cmp ecx, 2
jne 0x405f91
xor ecx, ecx
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esp + 0x54]
jmp 0x406013
cmp ecx, 3
jne 0x405fb2
xor ecx, ecx
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esp + 0x50]
jmp 0x406013
cmp ecx, 4
jne 0x405fd3
xor ecx, ecx
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esp + 0x58]
jmp 0x406013
cmp ecx, 5
jne 0x405ff4
xor ecx, ecx
mov edx, 0x30
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esp + 0x60]
jmp 0x406013
cmp ecx, 6
jne 0x406019
xor ecx, ecx
mov edx, 0x38
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [esp + 0x48]
mov dword [ecx + esi], eax
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + edx*4 + 0xb0]
mov dword [esp + 0x30], 0
test eax, eax
jle 0x4062d7
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
xor ebx, ebx
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x74]
push eax
push 1
push 0x20
lea ecx, [esp + 0x84]
push ecx
mov ecx, 0x5c8360
call fcn.00450720
cmp dword [esp + 0x14], 0
jne 0x4060ba
mov edx, dword [esp + 0x68]
mov eax, dword [edx + esi]
mov ecx, dword [esp + 0x40]
movq xmm0, qword [esp + 0x78]
movq qword [eax + ecx], xmm0
mov edx, dword [esp + 0x80]
add eax, ecx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x68]
mov edx, dword [eax + esi]
movq xmm0, qword [esp + 0x84]
lea eax, [edx + ecx + 0xc]
movq qword [eax], xmm0
mov edx, dword [esp + 0x8c]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x68]
mov eax, dword [eax + esi]
jmp 0x40628b
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x406123
mov eax, dword [esi]
movq xmm0, qword [esp + 0x78]
movq qword [eax + ebx], xmm0
mov ecx, dword [esp + 0x80]
mov dword [eax + ebx + 8], ecx
mov edx, dword [esi]
movq xmm0, qword [esp + 0x84]
add eax, ebx
movq qword [edx + ebx + 0xc], xmm0
mov ecx, dword [esp + 0x8c]
lea eax, [edx + ebx + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [esi]
mov dword [edx + ebx + 0x18], 0xffffffff
mov eax, dword [esi]
mov ecx, dword [esp + 0x90]
mov dword [eax + ebx + 0x1c], ecx
mov edx, dword [esp + 0x94]
mov dword [eax + ebx + 0x20], edx
jmp 0x4062a1
cmp eax, 2
jne 0x40616f
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + esi]
movq xmm0, qword [esp + 0x78]
movq qword [eax + edi], xmm0
mov edx, dword [esp + 0x80]
add eax, edi
mov dword [eax + 8], edx
mov eax, dword [ecx + esi]
mov dword [edi + eax + 0xc], 0xffffffff
mov ecx, dword [ecx + esi]
mov edx, dword [esp + 0x90]
mov dword [edi + ecx + 0x10], edx
mov eax, dword [esp + 0x94]
mov dword [edi + ecx + 0x14], eax
jmp 0x4062a1
cmp eax, 3
jne 0x4061b5
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + esi]
add eax, dword [esp + 0x2c]
movq xmm0, qword [esp + 0x78]
movq qword [eax], xmm0
mov edx, dword [esp + 0x80]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x90]
mov ecx, dword [ecx + esi]
mov eax, dword [esp + 0x2c]
mov dword [ecx + eax + 0xc], edx
mov edx, dword [esp + 0x94]
mov dword [ecx + eax + 0x10], edx
jmp 0x4062a1
cmp eax, 4
jne 0x4061fb
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + esi]
movq xmm0, qword [esp + 0x78]
movq qword [eax + edi], xmm0
mov edx, dword [esp + 0x80]
add eax, edi
mov dword [eax + 8], edx
mov eax, dword [ecx + esi]
movq xmm0, qword [esp + 0x84]
lea eax, [edi + eax + 0xc]
movq qword [eax], xmm0
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
jmp 0x4062a1
cmp eax, 5
jne 0x40623e
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi]
add eax, dword [esp + 0x34]
movq xmm0, qword [esp + 0x78]
movq qword [eax], xmm0
mov edx, dword [esp + 0x80]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x90]
mov ecx, dword [ecx + esi]
mov eax, dword [esp + 0x34]
mov dword [ecx + eax + 0x10], edx
mov edx, dword [esp + 0x94]
mov dword [ecx + eax + 0x14], edx
jmp 0x4062a1
cmp eax, 6
jne 0x4062a1
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + esi]
add eax, dword [esp + 0x20]
movq xmm0, qword [esp + 0x78]
movq qword [eax], xmm0
mov edx, dword [esp + 0x80]
mov dword [eax + 8], edx
mov eax, dword [ecx + esi]
mov edx, dword [esp + 0x20]
movq xmm0, qword [esp + 0x84]
lea eax, [edx + eax + 0xc]
movq qword [eax], xmm0
mov edx, dword [esp + 0x8c]
mov dword [eax + 8], edx
mov ecx, dword [ecx + esi]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x90]
mov dword [eax + ecx + 0x18], edx
mov edx, dword [esp + 0x94]
mov dword [eax + ecx + 0x1c], edx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0xb0]
add dword [esp + 0x40], 0x20
add dword [esp + 0x2c], 0x14
add dword [esp + 0x34], 0x30
add dword [esp + 0x20], 0x38
inc ecx
add ebx, 0x24
add edi, 0x18
cmp ecx, eax
mov dword [esp + 0x30], ecx
jl 0x406048
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
inc ecx
add esi, 4
cmp ecx, dword [edx + edi*4 + 0x14c]
mov dword [esp + 0x24], ecx
jl 0x405f26
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + ebx*4 + 0xf0]
lea ebx, [esp + ebx*4 + 0xf0]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], ebx
test eax, eax
je 0x40638c
xor ecx, ecx
lea eax, [eax + eax*2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
xor edi, edi
add esp, 4
cmp dword [ebx], edi
mov dword [esp + 0x2c], eax
jle 0x40638c
mov esi, eax
mov eax, dword [esp + 0x74]
push eax
push 1
push 6
lea ecx, [esp + 0xa4]
push ecx
mov ecx, 0x5c8360
call fcn.00450720
mov dx, word [esp + 0x98]
mov ax, word [esp + 0x9a]
mov cx, word [esp + 0x9c]
mov word [esi], dx
add esi, 2
mov word [esi], ax
add esi, 2
mov word [esi], cx
inc edi
add esi, 2
cmp edi, dword [ebx]
jl 0x406342
mov edx, dword [esp + 0x14]
mov eax, dword [edx*4 + 0x5ab00c]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [edi + esi*4 + 0x10c], eax
mov eax, dword [edi + esi*4 + 0x14c]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [edi + esi*4 + 0x14c]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
mov dword [edi + esi*4 + 0x18c], eax
call fcn.005479b0
add esp, 0x10
cmp dword [edi + esi*4 + 0x14c], 0
mov edi, dword [esp + 0x70]
mov dword [esp + 0x24], 0
jle 0x406795
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
sub eax, edi
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x60]
sub eax, edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
sub eax, edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
sub eax, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
sub eax, edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
sub eax, edi
mov ebx, edi
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edx, dword [ecx + esi*4 + 0x258]
mov eax, dword [esp + 0x40]
movss xmm0, dword [eax + edx + 0xc]
subss xmm0, dword [eax + edx]
add eax, edx
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [eax + 0x10]
subss xmm0, dword [eax + 4]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [eax + 0x14]
subss xmm0, dword [eax + 8]
mov eax, dword [ecx + esi*4 + 0x298]
add eax, dword [esp + 0x34]
movss dword [esp + 0xac], xmm0
movq xmm0, qword [esp + 0xa4]
mov edx, dword [esp + 0xac]
movq qword [eax], xmm0
mov dword [eax + 8], edx
mov edx, dword [0x65282c]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + esi*4 + 0x10c]
mov ecx, dword [esp + esi*4 + 0xb4]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [edx]
push pe_nt_image_headers32
push ecx
push eax
mov dword [esp + 0x24], 0
call fcn.004707e6
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x2000
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x406533
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov edx, dword [esp + 0x28]
shl eax, 5
push eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx + eax]
push ecx
push edx
jmp 0x406651
cmp eax, 1
jne 0x406559
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov ecx, dword [ebx]
mov edx, dword [esp + 0x28]
lea eax, [eax + eax*8]
add eax, eax
add eax, eax
push eax
push ecx
push edx
jmp 0x406651
cmp eax, 2
jne 0x406586
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x50]
mov edx, dword [ebx + ecx]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
jmp 0x406651
cmp eax, 3
jne 0x4065b1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebx + ecx]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
jmp 0x406651
cmp eax, 4
jne 0x4065db
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x54]
mov edx, dword [ebx + ecx]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
jmp 0x406651
cmp eax, 5
jne 0x406602
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebx + ecx]
lea eax, [eax + eax*2]
shl eax, 4
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
jmp 0x406651
cmp eax, 6
jne 0x406625
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov edx, dword [esp + 0x44]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebx + edx]
jmp 0x406644
cmp eax, 7
jne 0x406a34
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x14]
call eax
mov edx, dword [esp + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + ebx]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.005481a0
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
add esp, 0xc
push eax
mov eax, dword [edx + 0x40]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0xa0]
push edx
push 0x2000
push eax
mov eax, dword [ecx + 0x44]
call eax
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov ecx, dword [esp + 0xa0]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
add edx, edx
push edx
push eax
push ecx
call fcn.005481a0
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
add esp, 0xc
push eax
mov eax, dword [edx + 0x48]
call eax
cmp dword [ebp + 0x14], 0
je 0x40671b
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
xor ecx, ecx
lea eax, [eax + eax*2]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
fld dword [0x565628]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push esi
push ecx
fstp dword [esp]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push 0
push 0
push 0
push esi
push 0x14000000
push eax
call edx
test esi, esi
je 0x406717
push esi
call fcn.00547cdc
add esp, 4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4 + 0x18c]
mov edx, dword [esp + 0x24]
lea eax, [eax + edx*4]
mov edx, dword [0x65282c]
push eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [eax + esi*4 + 0x10c]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + 0x2c]
push edx
call eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40676e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x40], 0x18
add dword [esp + 0x34], 0xc
inc eax
add ebx, 4
cmp eax, dword [ecx + esi*4 + 0x14c]
mov dword [esp + 0x24], eax
jl 0x40644d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp dword [eax + edx*4 + 0x14c], 0
mov dword [esp + 0x24], 0
jle 0x406903
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
sub eax, edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
sub eax, edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
sub eax, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
sub ebx, edi
sub eax, edi
mov esi, edi
mov dword [esp + 0x44], eax
cmp dword [esp + 0x64], 0
je 0x40680b
mov eax, dword [esi + ebx]
test eax, eax
je 0x40680b
push eax
call fcn.00547cdc
add esp, 4
mov dword [esi + ebx], 0
test edi, edi
je 0x406824
mov eax, dword [esi]
test eax, eax
je 0x406824
push eax
call fcn.00547cdc
add esp, 4
mov dword [esi], 0
cmp dword [esp + 0x60], 0
je 0x40684a
mov ecx, dword [esp + 0x50]
mov eax, dword [esi + ecx]
test eax, eax
je 0x40684a
push eax
call fcn.00547cdc
mov edx, dword [esp + 0x54]
add esp, 4
mov dword [esi + edx], 0
cmp dword [esp + 0x48], 0
je 0x406870
mov eax, dword [esp + 0x4c]
mov eax, dword [esi + eax]
test eax, eax
je 0x406870
push eax
call fcn.00547cdc
mov ecx, dword [esp + 0x50]
add esp, 4
mov dword [esi + ecx], 0
cmp dword [esp + 0x58], 0
je 0x406896
mov edx, dword [esp + 0x54]
mov eax, dword [esi + edx]
test eax, eax
je 0x406896
push eax
call fcn.00547cdc
mov eax, dword [esp + 0x58]
add esp, 4
mov dword [esi + eax], 0
cmp dword [esp + 0x38], 0
je 0x4068bc
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + ecx]
test eax, eax
je 0x4068bc
push eax
call fcn.00547cdc
mov edx, dword [esp + 0x60]
add esp, 4
mov dword [esi + edx], 0
cmp dword [esp + 0x3c], 0
je 0x4068e2
mov eax, dword [esp + 0x44]
mov eax, dword [esi + eax]
test eax, eax
je 0x4068e2
push eax
call fcn.00547cdc
mov ecx, dword [esp + 0x48]
add esp, 4
mov dword [esi + ecx], 0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
add esi, 4
cmp eax, dword [edx + ecx*4 + 0x14c]
mov dword [esp + 0x24], eax
jl 0x4067ed
cmp dword [esp + 0x64], 0
je 0x406917
mov edx, dword [esp + 0x64]
push edx
call fcn.00547cdc
add esp, 4
test edi, edi
je 0x406924
push edi
call fcn.00547cdc
add esp, 4
cmp dword [esp + 0x60], 0
je 0x406938
mov eax, dword [esp + 0x60]
push eax
call fcn.00547cdc
add esp, 4
cmp dword [esp + 0x48], 0
je 0x40694c
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00547cdc
add esp, 4
cmp dword [esp + 0x58], 0
je 0x406960
mov edx, dword [esp + 0x58]
push edx
call fcn.00547cdc
add esp, 4
cmp dword [esp + 0x38], 0
je 0x406974
mov eax, dword [esp + 0x38]
push eax
call fcn.00547cdc
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x406988
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00547cdc
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x406999
push eax
call fcn.00547cdc
add esp, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x10
jb 0x405c60
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x18]
push ebx
push 1
push 0x40
lea edi, [esi + 0x38c]
push edi
mov ecx, 0x5c8360
call fcn.00450720
mov dword [esp + 0x30], 0x10
mov eax, dword [edi]
test eax, eax
je 0x406a04
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054791c
mov ecx, dword [edi]
add esp, 4
push ebx
push ecx
push 0xc
push eax
mov ecx, 0x5c8360
mov dword [edi + 0x40], eax
call fcn.00450720
add edi, 4
sub dword [esp + 0x30], 1
jne 0x4069d1
push ebx
mov ecx, 0x5c8360
call fcn.004504b0
xor eax, eax
lea ecx, [esi + 0x14c]
cmp dword [ecx], 0
jne 0x406a61
inc eax
add ecx, 4
cmp eax, 0x10
jl 0x406a21
jmp 0x406ae4
push 0
push str.Create_mesh_error_
push str.Empty_vertex_type_
call fcn.0043d970
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00547aa7
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + eax*4 + 0x258]
movq xmm0, qword [ecx]
movq qword [esi + 0x358], xmm0
mov edx, dword [ecx + 8]
mov dword [esi + 0x360], edx
mov ecx, dword [esi + eax*4 + 0x258]
movq xmm0, qword [ecx + 0xc]
movq qword [esi + 0x364], xmm0
add ecx, 0xc
mov ecx, dword [ecx + 8]
mov dword [esi + 0x36c], ecx
mov ecx, dword [esi + eax*4 + 0x298]
movq xmm0, qword [ecx]
movq qword [esi + 0x370], xmm0
mov edx, dword [ecx + 8]
mov dword [esi + 0x378], edx
mov ecx, dword [esi + eax*4 + 0x2d8]
movq xmm0, qword [ecx]
movq qword [esi + 0x37c], xmm0
mov ecx, dword [ecx + 8]
mov dword [esi + 0x384], ecx
mov edx, dword [esi + eax*4 + 0x318]
fld dword [edx]
fstp dword [esi + 0x388]
mov ecx, dword [esp + 0x234]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00547aa7
mov esp, ebp
pop ebp
ret 0x10