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

Disassembly:
push 0xffffffffffffffff
push 0x455b33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x48]
lea ecx, [esp + 0x13]
push ecx
lea ecx, [esp + 0x2c]
mov eax, dword [ebx + 4]
mov dword [esp + 0x40], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
call fcn.00409960
or ebp, 0xffffffff
mov edi, esi
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x3c], 1
add ecx, esi
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00411590
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x28]
push edx
mov ecx, esi
mov byte [esp + 0x40], 2
call fcn.00410a80
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0
call fcn.0040a280
push esi
lea eax, [esp + 0x20]
push 0x461a2c
push eax
mov dword [esp + 0x48], ebp
call fcn.0041d250
push 0x4610ac
lea ecx, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x54], 3
call fcn.0041ebf0
add esp, 0x18
mov ecx, dword [0x4644f0]
mov byte [esp + 0x3c], 4
test ecx, ecx
je 0x421f98
mov eax, dword [eax]
push eax
call ecx
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 3
call fcn.0040a280
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], ebp
call fcn.0040a280
push str.parent
push ebx
call fcn.0044f900
add esp, 8
test eax, eax
je 0x421fda
mov edx, dword [eax + 4]
lea ecx, [esi + 0x94]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
push eax
call fcn.0041aa50
push str.geometry
push ebx
call fcn.0044f900
push str.mesh
push eax
call fcn.0044f900
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], eax
je 0x4224e0
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
mov edx, dword [eax]
shr edx, 0x1f
test dl, 1
je 0x42205b
mov eax, dword [eax + 4]
lea ecx, [esp + 0x13]
mov ebx, 5
push ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], ebx
call fcn.00410c90
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x40], 6
lea ecx, [eax + 0x18]
call fcn.00410a80
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], bl
call fcn.00408340
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esp + 0x14]
push str.vertex
push ecx
call fcn.0044f900
add esp, 8
test eax, eax
je 0x4220ea
mov edx, dword [eax + 4]
xor edi, edi
mov ebx, dword [edx + 4]
cmp dword [ebx], 0
jbe 0x4220ea
mov eax, dword [esp + 0x44]
lea esi, [eax + 0x24]
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [ecx + edi*4]
push eax
call fcn.00421e90
fld dword [esp + 0x24]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
add esp, 8
cmp eax, ecx
fstp dword [esp + 0x30]
je 0x4220d4
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.004297e0
mov eax, dword [esi + 4]
add esp, 8
add eax, 0xc
mov dword [esi + 4], eax
jmp 0x4220e3
lea edx, [esp + 0x28]
push 1
push edx
push eax
mov ecx, esi
call fcn.00426ec0
mov eax, dword [ebx]
inc edi
cmp edi, eax
jb 0x422085
mov eax, dword [esp + 0x14]
push str.normals
push eax
call fcn.0044f900
add esp, 8
test eax, eax
je 0x4221e6
mov ecx, dword [eax + 4]
xor edi, edi
mov ebx, dword [ecx + 4]
cmp dword [ebx], 0
jbe 0x42217d
mov edx, dword [esp + 0x44]
lea esi, [edx + 0x30]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
mov eax, dword [eax + edi*4]
push eax
call fcn.00421e90
fld dword [esp + 0x24]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
add esp, 8
cmp eax, ecx
fstp dword [esp + 0x30]
je 0x422167
lea edx, [esp + 0x28]
push edx
push eax
call fcn.004297e0
mov eax, dword [esi + 4]
add esp, 8
add eax, 0xc
mov dword [esi + 4], eax
jmp 0x422176
lea ecx, [esp + 0x28]
push 1
push ecx
push eax
mov ecx, esi
call fcn.00426ec0
mov eax, dword [ebx]
inc edi
cmp edi, eax
jb 0x422118
mov edx, dword [esp + 0x14]
push str.nrm_fs
push edx
call fcn.0044f900
add esp, 8
test eax, eax
je 0x4221e6
mov eax, dword [eax + 4]
xor edi, edi
mov ebx, dword [eax + 4]
cmp dword [ebx], 0
jbe 0x4221e6
mov ecx, dword [esp + 0x44]
lea esi, [ecx + 0x78]
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 4]
push eax
call ebp
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
add esp, 4
cmp ecx, edx
mov dword [esp + 0x18], eax
je 0x4221d0
test ecx, ecx
je 0x4221ca
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x4221df
lea eax, [esp + 0x18]
push 1
push eax
push ecx
mov ecx, esi
call fcn.0041ed40
mov eax, dword [ebx]
inc edi
cmp edi, eax
jb 0x4221a7
mov ecx, dword [esp + 0x14]
push str.tri_fs
push ecx
call fcn.0044f900
add esp, 8
test eax, eax
je 0x42224f
mov edx, dword [eax + 4]
xor edi, edi
mov ebx, dword [edx + 4]
cmp dword [ebx], 0
jbe 0x42224f
mov eax, dword [esp + 0x44]
lea esi, [eax + 0x54]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov eax, dword [eax + 4]
push eax
call ebp
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
add esp, 4
cmp ecx, edx
mov dword [esp + 0x18], eax
je 0x422239
test ecx, ecx
je 0x422233
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x422248
lea edx, [esp + 0x18]
push 1
push edx
push ecx
mov ecx, esi
call fcn.0041ed40
mov eax, dword [ebx]
inc edi
cmp edi, eax
jb 0x422210
mov eax, dword [esp + 0x14]
push 0x460fb8
push eax
call fcn.0044f900
add esp, 8
test eax, eax
je 0x42244c
mov ecx, dword [eax + 4]
xor edi, edi
mov ebx, dword [ecx + 4]
cmp dword [ebx], 0
jbe 0x4222e7
mov edx, dword [esp + 0x44]
lea esi, [edx + 0x3c]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
mov eax, dword [eax + edi*4]
push eax
call fcn.00421e90
fld dword [esp + 0x24]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
add esp, 8
cmp eax, ecx
fstp dword [esp + 0x2c]
mov dword [esp + 0x30], 0
je 0x4222d1
test eax, eax
je 0x4222cb
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
add dword [esi + 4], 0xc
jmp 0x4222e0
lea ecx, [esp + 0x28]
push 1
push ecx
push eax
mov ecx, esi
call fcn.00426ec0
mov eax, dword [ebx]
inc edi
cmp edi, eax
jb 0x42227d
mov edx, dword [esp + 0x14]
push str.tex_fs
push edx
call fcn.0044f900
add esp, 8
test eax, eax
je 0x422359
mov eax, dword [eax + 4]
xor edi, edi
mov ebx, dword [eax + 4]
cmp dword [ebx], 0
jbe 0x42244c
mov ecx, dword [esp + 0x44]
lea esi, [ecx + 0x60]
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 4]
push eax
call ebp
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
add esp, 4
cmp ecx, edx
mov dword [esp + 0x18], eax
je 0x42233e
test ecx, ecx
je 0x422338
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x42234d
lea eax, [esp + 0x18]
push 1
push eax
push ecx
mov ecx, esi
call fcn.0041ed40
mov eax, dword [ebx]
inc edi
cmp edi, eax
jb 0x422315
jmp 0x42244c
lea ecx, [esp + 0x13]
mov dword [esp + 0x3c], 7
push ecx
lea ecx, [esp + 0x2c]
call fcn.00409960
or esi, 0xffffffff
mov edi, str.WARNING_:
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x44]
mov byte [esp + 0x3c], 8
not ecx
dec ecx
push edx
add ecx, str.WARNING_:
push ecx
push str.WARNING_:
lea ecx, [esp + 0x34]
call fcn.00412ad0
mov eax, dword [0x4644f0]
mov byte [esp + 0x3c], 9
test eax, eax
je 0x4223b7
mov ecx, dword [esp + 0x28]
push ecx
call eax
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xa
call fcn.004112c0
mov ecx, dword [0x4644f0]
mov dword [esp + 0x3c], esi
test ecx, ecx
je 0x4223df
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
push eax
call ecx
add esp, 4
lea eax, [esp + 0x13]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x40], 0xb
call fcn.00409960
mov edi, str._has_no_texture_coords_index_r_n
mov ecx, esi
xor eax, eax
mov edx, dword [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, str._has_no_texture_coords_index_r_n
mov byte [esp + 0x40], 0xc
push ecx
push str._has_no_texture_coords_index_r_n
lea ecx, [esp + 0x34]
call fcn.00412ad0
mov eax, dword [0x4644f0]
mov byte [esp + 0x3c], 0xd
test eax, eax
je 0x42243a
mov ecx, dword [esp + 0x28]
push ecx
call eax
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xe
call fcn.004112c0
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x14]
push str.colors
push edx
call fcn.0044f900
add esp, 8
test eax, eax
je 0x4224e0
mov eax, dword [eax + 4]
xor edi, edi
mov ebx, dword [eax + 4]
cmp dword [ebx], 0
jbe 0x4224e0
mov ecx, dword [esp + 0x44]
lea esi, [ecx + 0x48]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
mov eax, dword [edx + edi*4]
push eax
call fcn.00421e90
fld dword [esp + 0x24]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
add esp, 8
cmp eax, ecx
fstp dword [esp + 0x30]
je 0x4224ca
test eax, eax
je 0x4224c4
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
add dword [esi + 4], 0xc
jmp 0x4224d9
lea ecx, [esp + 0x28]
push 1
push ecx
push eax
mov ecx, esi
call fcn.00426ec0
mov eax, dword [ebx]
inc edi
cmp edi, eax
jb 0x422476
push 0x2c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x3c], 0xf
je 0x422505
mov ecx, eax
call fcn.00421430
mov ebx, eax
jmp 0x422507
xor ebx, ebx
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
mov esi, dword [edi + 0x90]
test esi, esi
je 0x42252d
mov ecx, esi
call fcn.00408340
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x48]
push str.appearance
push esi
mov dword [edi + 0x90], ebx
call fcn.0044f900
add esp, 8
test eax, eax
je 0x4226dd
mov edx, dword [eax + 4]
mov ebp, dword [edx + 4]
test ebp, ebp
je 0x4227ba
mov eax, dword [ebp + 4]
mov esi, str.material
mov ecx, dword [eax]
mov edi, dword [ecx + 4]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x42258e
test cl, cl
je 0x42258a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42258e
add eax, 2
add esi, 2
test cl, cl
jne 0x42256a
xor eax, eax
jmp 0x422593
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x422685
mov esi, str.pc_mat
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4225c6
test cl, cl
je 0x4225c2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4225c6
add eax, 2
add esi, 2
test cl, cl
jne 0x4225a2
xor eax, eax
jmp 0x4225cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x422685
mov esi, str.render_style
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4225fe
test cl, cl
je 0x4225fa
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4225fe
add eax, 2
add esi, 2
test cl, cl
jne 0x4225da
xor eax, eax
jmp 0x422603
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4227ba
mov eax, dword [esp + 0x48]
push str.texture_indices
push eax
call fcn.0044f900
add esp, 8
test eax, eax
je 0x4227ba
mov ecx, dword [eax + 4]
xor esi, esi
mov ebp, dword [ecx + 4]
mov eax, dword [ebp]
test eax, eax
mov dword [ebx + 0x10], eax
jbe 0x422663
lea edi, [ebx + 0x14]
mov edx, dword [ebp + 4]
mov eax, dword [edx + esi*4]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [edi], eax
mov eax, dword [ebx + 0x10]
inc esi
add edi, 4
cmp esi, eax
jb 0x42263a
cmp esi, 4
jae 0x4227ba
lea eax, [ebx + esi*4 + 0x14]
mov dword [eax], esi
inc esi
add eax, 4
cmp esi, 4
jb 0x422667
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push str.texture_index
push ebp
call fcn.0044f900
add esp, 8
test eax, eax
je 0x4227ba
mov esi, 1
mov dword [ebx + 0x10], esi
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], 2
pop edi
pop esi
mov dword [ebx + 0x20], 3
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push str.texture_indices
push esi
call fcn.0044f900
add esp, 8
test eax, eax
je 0x422738
mov eax, dword [eax + 4]
xor esi, esi
mov ebp, dword [eax + 4]
mov eax, dword [ebp]
test eax, eax
mov dword [ebx + 0x10], eax
jbe 0x422729
lea edi, [ebx + 0x14]
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + esi*4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [edi], eax
mov eax, dword [ebx + 0x10]
inc esi
add edi, 4
cmp esi, eax
jb 0x422704
cmp esi, 4
jae 0x422738
lea eax, [ebx + esi*4 + 0x14]
mov dword [eax], esi
inc esi
add eax, 4
cmp esi, 4
jb 0x42272d
mov esi, dword [esp + 0x48]
push str.renderstyle_index
push esi
call fcn.0044f900
add esp, 8
test eax, eax
je 0x422764
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x24], eax
push str.render_priority
push esi
call fcn.0044f900
add esp, 8
test eax, eax
je 0x4227ba
mov edx, dword [eax + 4]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, 0xff
mov dword [esp + 0x48], 0xff
mov dword [esp + 0x18], 0
lea eax, [esp + 0x44]
jl 0x4227ac
lea eax, [esp + 0x48]
cmp dword [eax], 0
jg 0x4227b5
lea eax, [esp + 0x18]
mov cl, byte [eax]
mov byte [ebx + 0x28], cl
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret