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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
push 1
mov ecx, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x3ff00000
mov dword [esp + 0x18], ebx
call fcn.00437fc0
mov esi, eax
test esi, esi
je 0x415b89
jmp 0x415a40
mov edi, dword [ebp + 8]
lea esp, [esp]
mov ecx, edi
call fcn.00437e10
test eax, eax
jle 0x415b89
add edi, 0x10
push str.VERTEX
push edi
call fcn.0047b23e
add esp, 8
test eax, eax
je 0x415d44
cmp esi, 0x3432
jg 0x415b3c
je 0x415b07
cmp esi, 0x38
je 0x415ae4
cmp esi, 0x3130
je 0x415adb
cmp esi, 0x3230
jne 0x415b75
lea eax, [esp + 0x28]
push eax
push 0x4a8ce0
push edi
call fcn.0046ae6d
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
add esp, 0xc
push 0xbff00000
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
add ecx, 0x84
call fcn.00436610
mov ebx, eax
jmp 0x415b75
lea edx, [esp + 0x30]
jmp 0x415b66
mov ecx, dword [esp + 0xc]
push 0xffffff
push 1
push edi
call fcn.00413e60
test eax, eax
mov dword [esp + 0x14], eax
je 0x415d44
inc dword [esp + 0x10]
jmp 0x415b75
lea eax, [esp + 0x18]
push eax
push 0x4a8ce0
push edi
call fcn.0046ae6d
add esp, 0xc
test ebx, ebx
je 0x415b75
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0x3ff00000
jmp 0x415b75
cmp esi, 0x323130
je 0x415b62
cmp esi, 0x323230
je 0x415b5b
cmp esi, 0x323330
jne 0x415b75
lea eax, [esp + 0x20]
push eax
jmp 0x415b67
lea ecx, [esp + 0x40]
push ecx
jmp 0x415b67
lea edx, [esp + 0x38]
push edx
push 0x4a8ce0
push edi
call fcn.0046ae6d
add esp, 0xc
mov ecx, dword [ebp + 8]
push 1
call fcn.00437fc0
mov esi, eax
test esi, esi
jne 0x415a36
fld qword [esp + 0x38]
fabs
fcomp qword [0x4a79f0]
fnstsw ax
test ah, 0x41
je 0x415d44
fld qword [esp + 0x40]
fabs
fcomp qword [0x4a79f0]
fnstsw ax
test ah, 0x41
je 0x415d44
mov eax, dword [esp + 0x10]
test eax, eax
je 0x415d44
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x90]
test ecx, ecx
je 0x415d44
mov edx, dword [eax + 0x88]
mov ecx, dword [edx + 8]
mov eax, dword [ecx + 0x18]
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
fld qword [ecx + 0x10]
fst qword [esp + 0x60]
fstp qword [esp + 0x68]
fld qword [esp + 0x20]
fcomp qword [0x4a79f0]
fld qword [ecx + 8]
fnstsw ax
test ah, 0x41
je 0x415c0d
fchs
fst qword [esp + 0x48]
fstp qword [esp + 0x50]
fld qword [ecx + 0x20]
fcomp qword [0x4a79f0]
fnstsw ax
test ah, 0x41
jne 0x415c2c
mov ecx, 1
jmp 0x415c2e
xor ecx, ecx
mov edi, dword [edx]
test edi, edi
je 0x415d35
mov ebx, dword [ebp + 0xc]
jmp 0x415c40
fld qword [esp + 0x20]
mov eax, edi
mov esi, dword [eax + 8]
fcomp qword [0x4a79f0]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov edi, dword [edi]
mov dword [esp + 0x74], eax
fnstsw ax
mov dword [esp + 0x70], edx
test ah, 0x41
jne 0x415c76
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
jmp 0x415c7f
fld qword [esi + 8]
fchs
fstp qword [esp + 0x58]
test ecx, ecx
push ebx
je 0x415cb2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00415340
jmp 0x415ce6
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
add ecx, 0x3c
call fcn.0042c360
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fld qword [esi + 0x20]
fcomp qword [0x4a79f0]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x6c], ecx
fnstsw ax
test ah, 0x41
jne 0x415d2b
mov ecx, 1
jmp 0x415d2d
xor ecx, ecx
test edi, edi
jne 0x415c40
mov ecx, dword [esp + 0xc]
add ecx, 0x84
call fcn.00438400
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8