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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov ecx, dword [0x487100]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ecx
mov edi, dword [ebx + 0x44]
mov esi, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x68]
push ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
call fcn.0044dc90
add esp, 8
cmp eax, 0xffffffff
jne 0x45071d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 1
cmp edi, edx
jne 0x450732
xor esi, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], esi
jmp 0x450740
xor eax, eax
test esi, esi
setl al
inc eax
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x74], edx
jne 0x450759
mov eax, dword [ebx + 0x78]
mov ecx, eax
and ecx, 2
and eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
jmp 0x450761
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], esi
mov eax, dword [ebx + 0x50]
mov dword [esp + 0xc], esi
neg eax
sbb eax, eax
add eax, 2
cmp eax, esi
mov dword [esp + 0x54], eax
jle 0x450e7c
lea ecx, [esi + esi*2]
lea eax, [esi + ecx*4]
shl eax, 3
mov dword [esp + 0x10], eax
lea edi, [eax + 0x487108]
mov eax, dword [ebx + 0x50]
test eax, eax
mov dword [esp + 0x48], edi
je 0x4507ac
push 0
lea edx, [esp + 0x5c]
push edi
push edx
push ebx
call fcn.004510e0
add esp, 0x10
jmp 0x4507bb
lea eax, [esp + 0x58]
push edi
push eax
push ebx
call fcn.00450e90
add esp, 0xc
mov ecx, dword [0x4712e4]
test ecx, ecx
je 0x4507ff
mov dword [ecx + esi*8 + 0x31a78], eax
lea ecx, [esi + esi*4]
shl ecx, 3
sub ecx, esi
lea edx, [esp + 0x58]
shl ecx, 4
add ecx, 0x30518
mov esi, 0x27
fild dword [edx]
mov edi, dword [0x4712e4]
add ecx, 8
add edx, 4
dec esi
fstp qword [ecx + edi - 8]
jne 0x4507e6
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x60]
push edi
push edx
push 0x475eb8
push ebx
call fcn.00451200
add esp, 0x18
test eax, eax
jne 0x450e7c
cmp dword [esp + 0x50], 2
jne 0x4509b1
mov eax, dword [esp + 0x10]
lea edi, [eax + 0x4871d8]
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x450856
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xf4]
push ecx
push edi
push edx
push ebx
call fcn.004510e0
add esp, 0x10
jmp 0x450868
lea eax, [esp + 0xf4]
push edi
push eax
push ebx
call fcn.00450e90
add esp, 0xc
mov ecx, dword [0x4712e4]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4508b6
mov edx, dword [esp + 0xc]
mov esi, 0x27
mov dword [ecx + edx*8 + 0x31a7c], eax
lea ecx, [edx + edx*4]
shl ecx, 3
sub ecx, edx
lea edx, [esp + 0xf4]
shl ecx, 4
add ecx, 0x30650
fild dword [edx]
mov eax, dword [0x4712e4]
add ecx, 8
add edx, 4
dec esi
fstp qword [ecx + eax - 8]
jne 0x45089e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0xfc]
push edi
push edx
push 0x4767b8
push ebx
call fcn.00451200
add esp, 0x18
test eax, eax
jne 0x450e7c
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x45090b
mov eax, 0x475eb8
fld dword [eax]
fld dword [eax + 0x900]
fld st(1)
fsub st(1)
add eax, 4
cmp eax, 0x4767b8
fstp dword [eax + 0x8fc]
fadd st(1)
fstp dword [eax - 4]
fstp st(0)
jl 0x4508e8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x450933
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x38]
push eax
push esi
push ecx
lea edx, [esp + 0x100]
push edi
push edx
push 0x475eb8
call fcn.00451cb0
add esp, 0x18
test esi, esi
jne 0x450946
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x450946
cmp dword [esp + 0x34], 3
jne 0x450962
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x40]
mov ecx, dword [edx + 0x487148]
cmp eax, ecx
jbe 0x45095f
mov dword [edx + 0x487148], eax
jmp 0x450962
mov dword [edi + 0x40], ecx
mov eax, dword [esp + 0x34]
dec eax
je 0x450992
sub eax, 2
jne 0x4509b1
mov ecx, dword [edi + 0x40]
mov eax, 0x475eb8
lea ecx, [ecx + ecx*8]
shl ecx, 1
test ecx, ecx
jle 0x4509b1
fld dword [eax + 0x900]
fadd dword [eax]
add eax, 4
dec ecx
fstp dword [eax - 4]
jne 0x45097f
jmp 0x4509b1
mov eax, dword [edi + 0x40]
mov ecx, 0x475eb8
lea eax, [eax + eax*8]
shl eax, 1
test eax, eax
jle 0x4509b1
mov edx, dword [ecx + 0x900]
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x4509a3
mov ecx, dword [0x4712e4]
test ecx, ecx
je 0x450d9e
mov eax, dword [ebx + 0x50]
mov edi, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x64]
mov esi, dword [esp + 0x1c]
lea eax, [eax + eax*2]
add eax, edi
shl eax, 4
add eax, edx
mov edx, dword [eax*4 + 0x45eaf8]
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x31ac0], edx
mov edx, dword [0x4712e4]
mov ecx, dword [eax*4 + 0x45ecb8]
mov dword [edx + 0x31ac4], ecx
mov ecx, dword [0x4712e4]
mov eax, dword [ebx + 0x84]
mov dword [ecx + 0x31abc], eax
mov eax, dword [0x4712e4]
mov edx, dword [ebx + 0x60]
mov dword [eax + 0x31acc], edx
mov edx, dword [0x4712e4]
mov ecx, dword [ebx + 0x6c]
mov dword [edx + 0x31ad0], ecx
mov ecx, dword [0x4712e4]
mov eax, dword [ebx + 0x44]
xor edx, edx
mov dword [ecx + 0x31aac], eax
mov ecx, dword [ebx + 0x74]
mov eax, dword [0x4712e4]
cmp ecx, 1
sete dl
mov dword [eax + 0x31ab0], edx
mov ecx, dword [0x4712e4]
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0x31ab4], edx
mov eax, dword [0x4712e4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x31ab8], ecx
mov eax, dword [0x4712e4]
mov edx, dword [0x487100]
test esi, esi
mov dword [eax + 0x31ac8], edx
jle 0x450b22
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, 0x31ad4
mov dword [esp + 0x14], esi
lea ecx, [ecx*8 + 0x31a28]
lea eax, [eax + 0x487158]
mov edi, dword [0x4712e4]
mov esi, dword [eax - 0x48]
mov dword [ecx + edi - 0x870], esi
mov edi, dword [0x4712e4]
mov esi, dword [eax]
mov dword [ecx + edi], esi
mov edi, dword [0x4712e4]
mov esi, dword [eax - 0x3c]
mov dword [ecx + edi + 0x30], esi
mov edi, dword [0x4712e4]
mov esi, dword [eax - 0x40]
mov dword [ecx + edi + 0x20], esi
mov edi, dword [0x4712e4]
mov esi, dword [eax - 0x4c]
mov dword [ecx + edi + 0x40], esi
mov edi, dword [0x4712e4]
mov esi, dword [eax - 4]
mov dword [ecx + edi + 0x10], esi
mov esi, dword [esp + 0xc]
cmp esi, 1
jne 0x450b08
mov edi, dword [0x4712e4]
mov esi, dword [eax - 0x50]
mov dword [edx + edi], esi
mov esi, dword [esp + 0x14]
add ecx, 4
add edx, 4
add eax, 0xd0
dec esi
mov dword [esp + 0x14], esi
jne 0x450aa4
mov esi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
mov dword [esp + 0x20], eax
jle 0x450d9e
mov ecx, dword [esp + 0xc]
lea edx, [ecx*8 + 0x31a28]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
lea edx, [ecx + 0x48711c]
mov dword [esp + 0x10], edx
mov ecx, dword [0x4712e4]
mov edx, dword [esp + 0x14]
cmp dword [edx + ecx], 0
jne 0x450b65
fld qword [0x4565d0]
jmp 0x450b6b
fld qword [0x456610]
mov edx, dword [esp + 0x10]
cmp dword [edx - 4], 2
jne 0x450c65
mov esi, dword [esp + 0xc]
xor edx, edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x30], edx
lea eax, [eax + esi*2]
mov dword [esp + 0x44], 0xc
mov dword [esp + 0x2c], eax
lea edi, [eax + eax*4]
shl edi, 3
sub edi, eax
lea eax, [eax + eax*2]
fchs
lea esi, [eax*4 + 0x311c8]
lea eax, [edi*8 + 0x30518]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x24], eax
jmp 0x450bd7
mov ecx, dword [0x4712e4]
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x44], 0xc
jmp 0x450bd7
mov edi, dword [esp + 0x4c]
sub edi, dword [ebx]
add eax, 0x18
fld st(0)
add edi, edx
add edx, 3
fmul qword [ecx + edi*8 + 0x30518]
fstp qword [eax + ecx - 0x18]
mov ecx, dword [0x4712e4]
mov edi, dword [esi + ecx]
shl edi, 1
mov dword [esp + 0x40], edi
fild dword [esp + 0x40]
fsubr qword [eax + ecx - 0x18]
fstp qword [eax + ecx - 0x18]
mov ecx, dword [esp + 0x44]
dec ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [0x4712e4]
jne 0x450bd3
mov edx, dword [esi + ecx]
mov eax, dword [esp + 0x2c]
neg edx
lea edi, [eax + eax*4]
add esi, 4
shl edx, 1
shl edi, 3
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
fild dword [esp + 0x40]
sub edi, eax
mov eax, dword [esp + 0x24]
add edi, edx
inc edx
add eax, 8
cmp edx, 3
fstp qword [ecx + edi*8 + 0x30638]
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
jl 0x450bbb
fstp st(0)
jmp 0x450d13
mov edx, dword [esp + 0xc]
mov esi, 0x462300
fchs
lea edx, [eax + edx*2]
lea eax, [edx + edx*4]
lea edi, [edx + edx*4]
shl edi, 3
lea eax, [edx + eax*2]
shl eax, 4
mov dword [esp + 0x2c], eax
add eax, 0x30258
sub edi, edx
lea edx, [edi*8 + 0x30518]
jmp 0x450c9c
mov ecx, dword [0x4712e4]
lea edi, [edx + ecx]
mov ebx, dword [edx + ecx]
mov dword [eax + ecx], ebx
mov ecx, dword [edi + 4]
mov edi, dword [0x4712e4]
mov dword [eax + edi + 4], ecx
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 0x38]
test edi, edi
je 0x450ccb
fild dword [esi]
mov ecx, dword [0x4712e4]
fadd qword [eax + ecx]
fstp qword [eax + ecx]
mov ecx, dword [0x4712e4]
add esi, 4
fld st(0)
fmul qword [eax + ecx]
add edx, 8
add eax, 8
cmp esi, 0x462354
fstp qword [eax + ecx - 8]
jl 0x450c96
mov edx, dword [0x4712e4]
mov eax, dword [esp + 0x2c]
fstp st(0)
mov dword [eax + edx + 0x30300], 0
mov ecx, dword [0x4712e4]
mov dword [eax + ecx + 0x30304], 0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
inc eax
add esi, 4
add edx, 0xd0
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
jl 0x450b4d
mov esi, dword [esp + 0xc]
mov edx, ecx
mov eax, 0x475eb8
mov dword [esp + 0x30], edx
lea esi, [esi + esi*8]
shl esi, 0xa
add esi, 0x11b18
mov dword [esp + 0x24], 0x20
mov ecx, esi
mov edx, 0x12
add esi, 0x90
fld dword [eax]
mov edi, dword [0x4712e4]
add eax, 4
fstp qword [ecx + edi]
add ecx, 8
dec edx
jne 0x450d74
mov ecx, dword [esp + 0x24]
dec ecx
mov dword [esp + 0x24], ecx
jne 0x450d67
mov ecx, dword [esp + 0x30]
dec ecx
mov dword [esp + 0x30], ecx
jne 0x450d5f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x450dfb
mov esi, dword [esp + 0x48]
xor edi, edi
lea eax, [edi + 0x475eb8]
push esi
push eax
call fcn.00451fe0
mov eax, dword [esp + 0x28]
push esi
push eax
lea ecx, [edi + 0x484018]
lea eax, [edi + 0x475eb8]
push ecx
push eax
push ebx
call fcn.00452060
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
inc eax
add esi, 0xd0
add edi, 0x900
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x450db4
mov edi, dword [ebp + 0x10]
mov esi, 0x484018
mov eax, dword [esp + 0x34]
test eax, eax
jl 0x450e1a
mov edx, dword [ebp + 0xc]
push edi
push edx
push esi
push ebx
call dword [ebp + 0x14]
add esp, 0x10
jmp 0x450e4f
mov edx, dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
push ecx
push edx
push 0
push esi
push ebx
call dword [ebp + 0x18]
mov ecx, dword [esp + 0x2c]
push edi
add ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esi + 0x900]
push 1
push ecx
push ebx
call dword [ebp + 0x18]
add esp, 0x28
mov ecx, dword [esp + 0x18]
add esi, 0x80
add ecx, eax
cmp esi, 0x484918
mov dword [esp + 0x18], ecx
jl 0x450e03
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x54]
inc esi
cmp esi, eax
mov dword [esp + 0xc], esi
jl 0x45077b
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret