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

Disassembly:
push 0xffffffffffffffff
push 0x5b1e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x69e298]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e298]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov esi, dword [esp + 0x168]
mov edi, dword [esp + 0x16c]
mov ebp, ecx
push 8
lea eax, [esp + 0x58]
lea ecx, [ebp + 4]
push eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edi
call fcn.00499ab0
xor ebx, ebx
lea eax, [ebp + 4]
cmp eax, ebx
je 0x45c7d4
lea eax, [ebp + 0x38]
jmp 0x45c7d6
xor eax, eax
push 0x19
push eax
lea ecx, [ebp + 0x60]
call fcn.004ce550
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x6c], edi
mov eax, dword [0x69fae4]
imul eax, dword [0x69fae0]
sub esp, 0x24
mov edi, esp
mov ecx, 9
lea esi, [esp + 0x88]
add ebp, 0x9c
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebp
mov dword [esp + 0x70], eax
call fcn.004543a0
mov eax, dword [esp + 0x50]
add eax, 4
lea ecx, [eax + 0x14]
fild dword [eax + 0x24]
add eax, 0x1c
fstp dword [esp + 0x38]
fild dword [eax + 0xc]
fstp dword [esp + 0x60]
fild dword [eax]
fidiv dword [ecx]
fstp dword [esp + 0x14]
fild dword [eax + 4]
fidiv dword [ecx + 4]
fstp dword [esp + 0x4c]
call fcn.00403570
lea ecx, [eax + 0x28]
call fcn.004aa580
fstp dword [esp + 0x34]
fld1
xor ecx, ecx
mov dword [esp + 0x40], ecx
cmp dword [0x69fae4], ebx
jbe 0x45c995
fld dword [esp + 0x34]
mov eax, dword [0x69fae0]
fld qword [0x5d4450]
mov edx, ecx
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
test edx, edx
jge 0x45c88d
fadd dword [0x5d36c0]
mov edi, eax
fmul st(1)
imul edi, ecx
fstp dword [esp + 0x5c]
xor esi, esi
mov dword [esp + 0x44], edi
cmp eax, ebx
jbe 0x45c980
fld dword [esp + 0x5c]
lea edi, [edi + edi*8]
fld st(0)
add edi, edi
fsub st(3)
add edi, edi
fchs
fstp dword [esp + 0x1c]
fldz
fstp dword [esp + 0x20]
fdiv dword [esp + 0x60]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x58]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [esp + 0x44]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [esi + ecx]
cmp edx, eax
jb 0x45c906
fstp st(2)
fstp st(0)
fstp st(0)
call fcn.00589a8c
fld1
fld dword [esp + 0x34]
fld qword [0x5d4450]
mov eax, dword [ebp + 0xc]
mov ecx, esi
add eax, edi
mov dword [esp + 0x5c], ecx
fild dword [esp + 0x5c]
test ecx, ecx
jge 0x45c91f
fadd dword [0x5d36c0]
mov ecx, dword [esp + 0x1c]
fmul st(1)
fld st(2)
inc esi
fsubr st(1)
add edi, 0x24
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [eax], edx
fxch st(3)
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
fst dword [eax + 0x18]
fst dword [eax + 0xc]
mov edx, dword [esp + 0x58]
fst dword [eax + 0x10]
fst dword [eax + 0x14]
mov dword [eax + 0x20], edx
fld dword [esp + 0x38]
fdivp st(4)
fld dword [esp + 0x14]
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x1c], ecx
mov eax, dword [0x69fae0]
cmp esi, eax
jb 0x45c8cd
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, dword [0x69fae4]
jb 0x45c879
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x48]
fstp st(0)
mov esi, dword [esp + 0x50]
lea eax, [eax + eax*8]
add eax, eax
add eax, eax
push eax
lea ecx, [esi + 0xcc]
call fcn.004bf7d0
mov edi, dword [0x67f3d8]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
call fcn.004d9290
lea ebp, [esi + 0xb4]
push edi
mov ecx, ebp
call fcn.004548a0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
mov dword [esp + 0x40], edi
test ecx, ecx
jle 0x45cb97
mov dword [esp + 0x34], ebx
jmp 0x45ca04
mov edi, dword [esp + 0x40]
mov ebp, dword [0x69fae0]
add ebp, ebp
push 4
mov dword [esp + 0x18], ebp
call fcn.00589ab7
add esp, 4
cmp eax, ebx
je 0x45ca26
lea edx, [esp + 0x18]
mov dword [eax], edx
jmp 0x45ca28
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push ebx
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x168], 1
call fcn.00454470
mov ecx, dword [0x69fae0]
mov eax, ecx
imul eax, edi
mov dword [esp + 0x38], eax
lea eax, [edi + 1]
mov dword [esp + 0x4c], eax
imul eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
xor ebp, ebp
shr eax, 1
mov dword [esp + 0x14], eax
je 0x45cadb
xor esi, esi
jmp 0x45ca80
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 1
cmp esi, eax
jb 0x45ca93
call fcn.00589a8c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
movzx edi, bp
add ecx, edi
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
lea ecx, [esi + 1]
sar eax, 1
cmp ecx, eax
jb 0x45caba
call fcn.00589a8c
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
add edx, edi
mov word [eax + esi*2 + 2], dx
inc ebp
add esi, 2
cmp ebp, dword [esp + 0x14]
jb 0x45ca80
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 1
mov dword [esp + 0x14], eax
jne 0x45caf0
call fcn.00589a8c
mov ecx, dword [esi + 0xc4]
sub ecx, dword [esi + 0xc0]
mov ebp, dword [esp + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x45cb19
call fcn.00589a8c
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc0]
add ecx, dword [esp + 0x34]
lea eax, [edx + edx]
push eax
push ebp
call fcn.004d9340
mov eax, dword [esp + 0x24]
mov dword [esp + 0x160], 0xffffffff
cmp eax, ebx
je 0x45cb4d
push eax
call fcn.0058984a
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0058984a
mov ecx, dword [esi + 0xc4]
sub ecx, dword [esi + 0xc0]
mov edi, dword [esp + 0x50]
add dword [esp + 0x38], 0xc
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
cmp edi, eax
mov dword [esp + 0x40], edi
jl 0x45ca00
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00589302
add esp, 4
mov byte [esp + 0x14], bl
mov ecx, dword [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x44]
lea edi, [esi + 0x70]
mov dword [esp + 0x40], eax
call fcn.0040fa40
lea edx, [esp + 0x38]
cmp edx, edi
je 0x45cbdc
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov ebp, dword [edi + 4]
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], ecx
cmp ebp, ebx
je 0x45cc16
lea edx, [ebp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x45cc16
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x45cc16
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00589302
add esp, 4
mov byte [esp + 0x14], bl
mov ecx, dword [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x44]
lea ebp, [esi + 0x78]
mov dword [esp + 0x40], eax
call fcn.0040fa40
lea edx, [esp + 0x38]
cmp edx, ebp
je 0x45cc5c
mov eax, dword [esp + 0x38]
mov dword [ebp], eax
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov dword [ebp + 4], edx
cmp ecx, ebx
je 0x45cc98
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x45cc98
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x45cc98
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [edi]
mov edi, dword [esp + 0x48]
add edi, edi
add edi, edi
push edi
push ebx
push eax
call fcn.0058a010
mov ebp, dword [ebp]
push edi
push ebx
push ebp
call fcn.0058a010
add esp, 0x18
push 4
mov edi, 0xf
push str.0111
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401db0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
mov ebp, 2
push ecx
mov dword [esp + 0x168], ebp
call fcn.00495c50
add esp, 8
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x160], 4
jb 0x45cd13
mov edx, dword [esp + 0x1c]
push edx
call fcn.0058984a
add esp, 4
push 8
push str.POSITION
lea ecx, [esp + 0xcc]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00401db0
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
push 5
push str.COLOR
lea ecx, [esp + 0xfc]
mov byte [esp + 0x168], 5
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
call fcn.00401db0
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], 3
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], 0xc
mov dword [esp + 0x120], ebx
push 8
push str.TEXCOORD
lea ecx, [esp + 0x12c]
mov byte [esp + 0x168], 6
mov dword [esp + 0x144], edi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
call fcn.00401db0
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], 1
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], 0x1c
mov dword [esp + 0x150], ebx
lea eax, [esp + 0x64]
push eax
push 3
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esi + 0xd8]
mov byte [esp + 0x16c], 7
call fcn.004be3c0
lea edx, [esp + 0x64]
push edx
lea ecx, [esi + 0x118]
call fcn.004bb0e0
push fcn.00401a50
push 3
push 0x30
lea eax, [esp + 0xd0]
push eax
mov byte [esp + 0x170], 4
call fcn.0058a75e
cmp dword [esp + 0x7c], 4
mov dword [esp + 0x160], 0xffffffff
jb 0x45ce8f
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0058984a
add esp, 4
push 4
push str.0210
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401db0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x168], 8
call fcn.00495c50
add esp, 8
push eax
lea ecx, [esi + 0x140]
mov byte [esp + 0x164], 9
call fcn.004bc4f0
cmp dword [esp + 0x7c], 4
jb 0x45cef0
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0058984a
add esp, 4
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x7c], 3
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x160], 0xffffffff
jb 0x45cf1f
mov edx, dword [esp + 0x1c]
push edx
call fcn.0058984a
add esp, 4
lea eax, [esp + 0x18]
mov edi, 1
push eax
lea ecx, [esi + 0x168]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x24], bl
call fcn.004bf640
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x180]
mov dword [esp + 0x20], ebp
mov byte [esp + 0x24], bl
mov byte [esp + 0x1c], bl
call fcn.004d91c0
fldz
fst dword [esp + 0xa4]
lea edx, [esp + 0x88]
fst dword [esp + 0xac]
push edx
fst dword [esp + 0xb4]
lea ecx, [esi + 0x174]
fst dword [esp + 0xb8]
mov dword [esp + 0x98], 0x10
fst dword [esp + 0xbc]
mov dword [esp + 0x9c], ebp
fstp dword [esp + 0xc0]
mov dword [esp + 0xa0], ebp
fld dword [0x5d4288]
mov dword [esp + 0xa4], ebp
fstp dword [esp + 0xc4]
mov dword [esp + 0xac], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
call fcn.004bf4b0
push edi
lea ecx, [esi + 0x188]
call fcn.004bf1f0
push 0x40
lea ecx, [esi + 0x194]
call fcn.004bf980
fld1
fst dword [esi + 0x80]
fld dword [0x5d46dc]
fstp dword [esi + 0x84]
fld dword [0x5d4648]
fstp dword [esi + 0x88]
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
fst dword [esi + 0x8c]
fstp dword [esi + 0x90]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00589f78
add esp, 0x150
ret 8