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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
fld qword [0x584ab0]
fmul qword [0x550fa0]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
fstp qword [esp + 0x38]
je 0x451dec
mov esi, dword [edi + 0xc]
test esi, esi
je 0x451dec
mov eax, dword [edi]
test ah, 1
jne 0x451dec
test esi, esi
mov dword [esp + 0x34], esi
je 0x451241
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [ecx]
xor edx, eax
test dh, 0xe
jne 0x45123d
and eax, 0xe00
cmp eax, 0x400
jne 0x45122f
lea eax, [esi + 0x30]
add ecx, 0x30
push eax
push ecx
call fcn.00418ab0
fcomp qword [0x556000]
add esp, 8
fnstsw ax
test ah, 1
jne 0x45123d
mov esi, dword [esi + 0xc]
mov eax, dword [edi + 0xc]
cmp esi, eax
je 0x45123d
test esi, esi
jne 0x4511f8
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x50]
xor ecx, ecx
lea edx, [esp + 0x120]
sub eax, 8
mov dword [esp + 0x70], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x98], edx
lea ebx, [esp + 0xe0]
lea edi, [esp + 0x140]
mov dword [esp + 0x74], eax
mov eax, dword [esi]
and eax, 0xe00
cmp eax, 0x400
jne 0x451429
cmp ecx, 2
jne 0x45136b
lea eax, [esi + 0x30]
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00418ab0
fcomp qword [0x556000]
add esp, 8
fnstsw ax
test ah, 1
je 0x4513d6
lea eax, [esi + 0x30]
lea edx, [esp + 0x88]
push eax
push edx
call fcn.00418ad0
fld st(0)
fabs
fcomp qword [0x556000]
add esp, 8
fnstsw ax
test ah, 1
jne 0x451dea
fld qword [esp + 0x28]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x45131d
fld st(0)
fsub qword [esp + 0x28]
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
je 0x451dea
mov eax, dword [esp + 0x10]
fstp qword [esp + 0x28]
cmp eax, 4
jge 0x451dec
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, ebx
mov dword [edi], 2
add edi, 4
add ebx, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
jmp 0x4513d6
cmp ecx, 3
jne 0x4513d6
lea eax, [esi + 0x30]
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00418ab0
fcomp qword [0x556000]
add esp, 8
fnstsw ax
test ah, 1
je 0x451399
mov dword [esp + 0x4c], 1
cmp dword [esp + 0x10], 4
jge 0x451dec
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, ebx
mov dword [edi], 3
add edi, 4
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x10]
inc edx
add ebx, 0x10
mov dword [esp + 0x10], edx
lea edx, [esi + 0x30]
mov eax, dword [esi + 0x30]
mov dword [esp + 0x88], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x8c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x90], eax
mov ecx, dword [edx + 0xc]
lea edx, [esi + 0x20]
mov dword [esp + 0x94], ecx
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, 2
jmp 0x4515ac
fld qword [esp + 0x28]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x451442
mov dword [esp + 0x4c], 1
cmp ecx, 2
jne 0x4515d0
lea edx, [esi + 0x48]
lea eax, [esp + 0x88]
push edx
push eax
call fcn.00418ab0
fcomp qword [0x556000]
add esp, 8
fnstsw ax
test ah, 1
je 0x451474
mov dword [esp + 0x4c], 1
cmp dword [esp + 0x10], 4
jge 0x451dec
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
mov dword [edi], 2
add edi, 4
add ebx, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
lea edx, [esi + 0x30]
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x60], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x68], eax
mov edx, dword [edx + 0xc]
mov dword [esp + 0x6c], edx
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x68]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x7c], edx
test eax, eax
jne 0x451546
cmp dword [esp + 0x30], 2
jge 0x451dec
mov eax, dword [esp + 0x98]
mov edx, eax
add eax, 0x10
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x74]
mov dword [edx], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x30]
inc edx
add eax, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x74], eax
cmp dword [esp + 0x30], 2
jg 0x45155e
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [eax], edx
mov dword [eax + 4], ecx
lea edx, [esi + 0x58]
mov eax, dword [esi + 0x58]
mov dword [esp + 0x88], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x8c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x90], eax
mov ecx, dword [edx + 0xc]
lea edx, [esi + 0x20]
mov dword [esp + 0x94], ecx
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, 3
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x451624
mov esi, dword [esi + 0xc]
mov eax, dword [esp + 0x34]
cmp esi, eax
jne 0x45128a
mov dword [esp + 0x70], 1
jmp 0x45128a
cmp ecx, 3
jne 0x4514ba
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
lea eax, [esp + 0x64]
push edx
lea ecx, [esi + 0x30]
push eax
push ecx
call fcn.00418a10
add esp, 0x10
test eax, eax
je 0x451dec
fld qword [esi + 0x40]
fsub qword [esp + 0x40]
fabs
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
je 0x451dec
fld qword [esp + 0x78]
fadd qword [esi + 0x68]
fstp qword [esp + 0x78]
jmp 0x451546
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x451789
mov eax, dword [esp + 0x30]
mov ecx, 1
cmp eax, ecx
jne 0x451780
cmp dword [esp + 0x14], ecx
jne 0x451780
fld qword [esp + 0x40]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x451780
fld qword [esp + 0xf0]
fadd qword [esp + 0xe0]
lea edx, [esp + 0x18]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x54]
fmul qword [0x550f68]
push eax
push ecx
fstp qword [esp + 0x24]
fld qword [esp + 0x104]
fadd qword [esp + 0xf4]
fmul qword [0x550f68]
fstp qword [esp + 0x2c]
call fcn.00418960
lea edx, [esp + 0xec]
lea eax, [esp + 0xfc]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00418960
lea edx, [esp + 0x90]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.00418ab0
fcomp qword [esp + 0x58]
add esp, 0x20
fnstsw ax
test ah, 0x41
je 0x451dec
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x50]
fld qword [esp + 0x40]
mov ecx, dword [esi]
push edx
fadd st(0), st(0)
and ecx, 0xffffff
or ecx, 0x5000000
mov dword [esi], ecx
fstp dword [esi + 0x20c]
call fcn.004189c0
fadd qword [esp + 0x44]
add esp, 4
fstp dword [esi + 0x210]
fld qword [esp + 0x50]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x451743
fld qword [esp + 0x58]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x451743
fld qword [0x550f20]
jmp 0x451753
fld qword [esp + 0x58]
fld qword [esp + 0x50]
fpatan
fmul qword [0x550f60]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x60]
fstp dword [esi + 0x218]
mov edx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x30], 1
jne 0x451808
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x451808
fld qword [esp + 0x40]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x451808
fld qword [esp + 0x78]
fcomp qword [str.fffffv_]
fnstsw ax
test ah, 0x41
jne 0x451808
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
fld qword [esp + 0x40]
mov ecx, dword [eax]
mov dword [eax + 0x218], 0
fadd st(0), st(0)
and ecx, 0xffffff
or ecx, 0x1000000
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
fstp dword [eax + 0x20c]
mov eax, dword [esp + 0x60]
mov dword [edx], eax
mov eax, dword [esp + 0x68]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 8], eax
xor eax, eax
mov dword [edx + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 4
jne 0x451dec
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x45182e
cmp dword [esp + 0x14], 4
je 0x451842
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x451dec
cmp dword [esp + 0x14], 2
jne 0x451dec
lea edx, [esp + 0xe0]
lea eax, [esp + 0xf0]
push edx
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.00418960
lea edx, [esp + 0xac]
push edx
call fcn.004189e0
lea eax, [esp + 0x100]
lea ecx, [esp + 0x110]
push eax
lea edx, [esp + 0xc4]
push ecx
push edx
fstp st(0)
call fcn.00418960
lea eax, [esp + 0xcc]
push eax
call fcn.004189e0
lea ecx, [esp + 0x120]
lea edx, [esp + 0x130]
push ecx
lea eax, [esp + 0xe4]
push edx
push eax
fstp st(0)
call fcn.00418960
lea ecx, [esp + 0xec]
push ecx
call fcn.004189e0
lea edx, [esp + 0x140]
lea eax, [esp + 0x110]
push edx
lea ecx, [esp + 0x104]
push eax
push ecx
fstp st(0)
call fcn.00418960
lea edx, [esp + 0x10c]
push edx
call fcn.004189e0
add esp, 0x40
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xa0]
push eax
push ecx
fstp st(0)
call fcn.00418ad0
fst qword [esp + 0x30]
fabs
fcomp qword [0x556000]
add esp, 8
fnstsw ax
test ah, 1
jne 0x451dec
lea edx, [esp + 0xc0]
lea eax, [esp + 0xb0]
push edx
push eax
call fcn.00418ad0
fsubr qword [esp + 0x30]
add esp, 8
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
je 0x451dec
lea ecx, [esp + 0xd0]
lea edx, [esp + 0xc0]
push ecx
push edx
call fcn.00418ad0
fsubr qword [esp + 0x30]
add esp, 8
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
je 0x451dec
lea eax, [esp + 0xa0]
lea ecx, [esp + 0xd0]
push eax
push ecx
call fcn.00418ad0
fsubr qword [esp + 0x30]
add esp, 8
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
je 0x451dec
lea edx, [esp + 0xe0]
lea eax, [esp + 0xf0]
push edx
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.00418960
lea edx, [esp + 0xfc]
lea eax, [esp + 0x10c]
push edx
lea ecx, [esp + 0xc0]
push eax
push ecx
call fcn.00418960
lea edx, [esp + 0xb8]
push edx
call fcn.004189c0
fstp qword [esp + 0x34]
lea eax, [esp + 0xcc]
push eax
call fcn.004189c0
fstp qword [esp + 0x40]
fld qword [esp + 0x38]
fcom qword [esp + 0x58]
add esp, 0x20
fnstsw ax
test ah, 0x41
jne 0x451dea
fld qword [esp + 0x20]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x451dea
cmp dword [esp + 0x14], 4
jne 0x451bc0
fld qword [esp + 0xb0]
fadd qword [esp + 0xa0]
mov eax, dword [ebp + 0x10]
fmul qword [0x550f68]
fadd qword [esp + 0xe0]
fstp qword [eax]
fld qword [esp + 0xb8]
fadd qword [esp + 0xa8]
fmul qword [0x550f68]
fadd qword [esp + 0xe8]
fstp qword [eax + 8]
fld qword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x451acc
fld qword [esp + 0xb0]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x451abc
fld qword [esp + 0xb8]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x451abc
fld qword [0x550f20]
jmp 0x451b38
fld qword [esp + 0xb8]
fld qword [esp + 0xb0]
jmp 0x451b0a
fld qword [esp + 0xa0]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x451afc
fld qword [esp + 0xa8]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x451afc
fld qword [0x550f20]
jmp 0x451b38
fld qword [esp + 0xa8]
fld qword [esp + 0xa0]
fpatan
fmul qword [0x550f60]
fcom qword [0x550f88]
fnstsw ax
test ah, 0x41
jne 0x451b25
fsub qword [0x550f10]
fcom qword [0x555ff0]
fnstsw ax
test ah, 1
je 0x451b38
fadd qword [0x550f10]
mov ecx, dword [ebp + 0xc]
fstp dword [ecx + 0x218]
fld st(0)
fsub qword [esp + 0x20]
fabs
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
je 0x451b79
mov edx, dword [ecx]
fst dword [ecx + 0x214]
fstp dword [ecx + 0x210]
and edx, 0xffffff
or edx, 0x2000000
xor eax, eax
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
fcom qword [esp + 0x20]
and eax, 0xffffff
or eax, 0x3000000
mov dword [ecx], eax
fnstsw ax
test ah, 0x41
jne 0x451b96
fld st(0)
jmp 0x451b9a
fld qword [esp + 0x20]
fstp dword [ecx + 0x210]
fcom qword [esp + 0x20]
fnstsw ax
test ah, 1
jne 0x451bb1
fstp st(0)
fld qword [esp + 0x20]
fstp dword [ecx + 0x214]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fld qword [esp + 0x50]
fsub qword [0x550f10]
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
je 0x451dec
fld qword [esp + 0x58]
fsub qword [0x550f10]
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 0x41
je 0x451dec
lea ecx, [esp + 0x130]
lea edx, [esp + 0x120]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.00418960
lea ecx, [esp + 0x5c]
push ecx
call fcn.004189c0
fst qword [esp + 0xa8]
fcomp qword [esp + 0x48]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x451dec
lea edx, [esp + 0x50]
push edx
call fcn.004189e0
lea eax, [esp + 0xa4]
fstp st(0)
push eax
call fcn.004189e0
lea ecx, [esp + 0xb8]
fstp st(0)
push ecx
call fcn.004189e0
lea edx, [esp + 0xac]
lea eax, [esp + 0x5c]
push edx
push eax
fstp st(0)
call fcn.00418ad0
fstp qword [esp + 0x3c]
lea ecx, [esp + 0xc4]
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.00418ad0
fstp qword [esp + 0x94]
fld qword [esp + 0x44]
fabs
fst qword [esp + 0x44]
fcomp qword [0x556000]
add esp, 0x1c
fnstsw ax
test ah, 0x41
jne 0x451cda
fld qword [esp + 0x78]
fabs
fcomp qword [0x551298]
fnstsw ax
test ah, 1
je 0x451cda
fld qword [esp + 0x40]
fadd st(0), st(0)
fld qword [esp + 0x18]
fsub st(1)
fabs
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x451d23
fstp st(0)
fld qword [esp + 0x78]
fabs
fcomp qword [0x556000]
fnstsw ax
test ah, 0x41
jne 0x451dec
fld qword [esp + 0x28]
fcomp qword [0x551298]
fnstsw ax
test ah, 1
je 0x451dec
fld qword [esp + 0x40]
fadd st(0), st(0)
fld qword [esp + 0x20]
fsub st(1)
fabs
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
je 0x451dea
fld qword [esp + 0x50]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x451d4d
fld qword [esp + 0x58]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
je 0x451d4d
fld qword [0x550f20]
jmp 0x451d83
fld qword [esp + 0x58]
fld qword [esp + 0x50]
fpatan
fmul qword [0x550f60]
fcom qword [0x550f88]
fnstsw ax
test ah, 0x41
jne 0x451d70
fsub qword [0x550f10]
fcom qword [0x555ff0]
fnstsw ax
test ah, 1
je 0x451d83
fadd qword [0x550f10]
mov eax, dword [ebp + 0xc]
fstp dword [eax + 0x218]
mov ecx, dword [eax]
fld st(0)
fadd qword [esp + 0x98]
and ecx, 0xffffff
or ecx, 0x4000000
mov dword [eax], ecx
fstp dword [eax + 0x210]
fstp dword [eax + 0x214]
fld qword [esp + 0x130]
fadd qword [esp + 0x120]
mov eax, dword [ebp + 0x10]
fmul qword [0x550f68]
fstp qword [eax]
fld qword [esp + 0x138]
fadd qword [esp + 0x128]
fmul qword [0x550f68]
fstp qword [eax + 8]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret