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

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x110]
mov al, byte [ebp + 0x52]
test al, al
push esi
push edi
mov dword [esp + 0xc], 0
je 0x4468e9
mov eax, dword [ebp + 0x60]
push eax
lea ecx, [esp + 0x40]
push 1
push ecx
call fcn.004452f0
mov edx, dword [ebp + 0x64]
push edx
lea eax, [esp + 0xe4]
push 2
push eax
call fcn.004452f0
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.004453b0
mov eax, dword [ebp + 0x68]
push eax
lea ecx, [esp + 0xf8]
push 3
push ecx
call fcn.004452f0
lea edx, [esp + 0x100]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.004453b0
add esp, 0x34
lea esi, [esp + 0x3c]
lea edi, [esp + 0x94]
jmp 0x4468f3
lea esi, [ebp + 0xac]
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x120]
test eax, eax
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
je 0x446913
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004453b0
add esp, 8
mov al, byte [ebp + 0x52]
test al, al
je 0x44694d
mov edx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x54]
push edx
push eax
push ecx
lea edx, [esp + 0xe0]
push edx
call fcn.00445370
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.004453b0
add esp, 0x18
jmp 0x44695e
lea esi, [ebp + 0x6c]
mov ecx, 0x10
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x44697a
push eax
lea edx, [esp + 0x98]
push edx
call fcn.004453b0
add esp, 8
lea esi, [ebp + 0x10]
mov edi, 0x10
mov eax, dword [esi]
test eax, eax
je 0x44699e
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x98]
push edx
push eax
call fcn.00446860
add esp, 0xc
add esi, 4
dec edi
jne 0x446982
mov eax, dword [ebp + 4]
test eax, eax
je 0x4472c7
cmp dword [ebp], 0
je 0x4472c7
mov eax, dword [0x4916c4]
fld dword [eax + 0x38]
sub esp, 0xc
fchs
fstp dword [esp + 8]
fld dword [eax + 0x34]
fchs
fstp dword [esp + 4]
fld dword [eax + 0x30]
lea eax, [esp + 0xe0]
fchs
fstp dword [esp]
push eax
call fcn.00445370
lea ecx, [esp + 0xe4]
push ecx
lea edx, [esp + 0xa8]
push edx
call fcn.004453b0
lea eax, [esp + 0xac]
push 0x491680
push eax
call fcn.004453b0
lea ecx, [esp + 0x5c]
push 0x491680
push ecx
call fcn.004453b0
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
add esp, 0x28
jmp 0x446a30
fld dword [esp + 0x9c]
add eax, 0x30
dec ecx
fmul dword [eax - 0x28]
fld dword [esp + 0x98]
fmul dword [eax - 0x2c]
faddp st(1)
fld dword [esp + 0x94]
fmul dword [eax - 0x30]
faddp st(1)
fadd dword [esp + 0xa0]
fstp dword [eax - 0x24]
fld dword [esp + 0xac]
fmul dword [eax - 0x28]
fld dword [esp + 0xa8]
fmul dword [eax - 0x2c]
faddp st(1)
fld dword [esp + 0xa4]
fmul dword [eax - 0x30]
faddp st(1)
fadd dword [esp + 0xb0]
fstp dword [eax - 0x20]
fld dword [esp + 0xbc]
fmul dword [eax - 0x28]
fld dword [esp + 0xb8]
fmul dword [eax - 0x2c]
faddp st(1)
fld dword [esp + 0xb4]
fmul dword [eax - 0x30]
faddp st(1)
fadd dword [esp + 0xc0]
fstp dword [eax - 0x1c]
fld dword [esp + 0x44]
fmul dword [eax - 0x10]
fld dword [esp + 0x40]
fmul dword [eax - 0x14]
faddp st(1)
fld dword [esp + 0x3c]
fmul dword [eax - 0x18]
faddp st(1)
fadd dword [esp + 0x48]
fstp dword [eax - 0xc]
fld dword [esp + 0x54]
fmul dword [eax - 0x10]
fld dword [esp + 0x50]
fmul dword [eax - 0x14]
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [eax - 0x18]
faddp st(1)
fadd dword [esp + 0x58]
fstp dword [eax - 8]
fld dword [esp + 0x5c]
fmul dword [eax - 0x18]
fld dword [esp + 0x64]
fmul dword [eax - 0x10]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [eax - 0x14]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [eax - 4]
jne 0x446a30
mov edx, dword [ebp + 4]
mov eax, dword [0x4975c0]
mov ecx, dword [0x491668]
mov esi, dword [ebp + 0xc]
add eax, edx
mov dword [0x4975c0], eax
mov eax, dword [ebp + 4]
push ebx
mov ebx, ecx
add ecx, eax
mov dword [esp + 0x3c], eax
lea edi, [ebx + ebx*2]
shl edi, 2
mov eax, 0xffffff88
sub eax, esi
mov dword [esp + 0x30], ebx
mov dword [0x491668], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], eax
mov al, byte [ebp + 0x50]
test al, al
jne 0x446b71
mov ecx, dword [esi + 0x18]
test byte [ecx + 0x4c], 2
je 0x446b92
fld dword [esp + 0x48]
fmul dword [esi + 0x14]
fld dword [esp + 0x44]
fmul dword [esi + 0x10]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esi + 0xc]
faddp st(1)
fadd dword [esp + 0x4c]
fstp dword [esp + 0x10]
test al, al
fld dword [esp + 0x50]
fmul dword [esi + 0xc]
fld dword [esp + 0x58]
fmul dword [esi + 0x14]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [esi + 0x10]
faddp st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x28]
fld dword [esp + 0x68]
fmul dword [esi + 0x14]
fld dword [esp + 0x64]
fmul dword [esi + 0x10]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esi + 0xc]
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [esp + 0x24]
je 0x446c04
mov eax, dword [esi]
fld dword [esp + 0x24]
fmul dword [eax + 0x14]
fld dword [esp + 0x28]
fmul dword [eax + 0x10]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [eax + 0xc]
faddp st(1)
fcomp dword [0x4799fc]
fnstsw ax
test ah, 5
jp 0x44729d
push esi
call fcn.004421a0
add esp, 4
test eax, eax
je 0x44729d
cmp eax, 2
mov eax, dword [0x49166c]
setne dl
mov byte [edi + eax + 8], dl
mov ecx, dword [esi + 0x18]
mov al, byte [ecx + 0x4c]
test al, 6
je 0x446e95
test al, 2
fld dword [esi + 0x74]
je 0x446e63
mov eax, dword [0x4916dc]
xor ebp, ebp
test eax, eax
jbe 0x446e63
mov ecx, dword [0x491664]
add ecx, 4
jmp 0x446c60
mov edx, dword [0x49167c]
fld dword [0x476670]
mov edi, dword [edx + ebp*4]
mov bl, byte [edi]
mov dl, bl
and dl, 4
je 0x446d09
mov eax, dword [esi]
fstp st(0)
fld dword [ecx - 4]
fsub dword [eax + 0xc]
fstp dword [esp + 0x14]
fld dword [ecx]
fsub dword [eax + 0x10]
fstp dword [esp + 0x1c]
fld dword [ecx + 4]
fsub dword [eax + 0x14]
fst dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fcom qword [0x4799e0]
fnstsw ax
test ah, 0x41
jne 0x446ce8
fsqrt
fdivr dword [0x47611c]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
jmp 0x446cea
fstp st(0)
fld dword [esp + 0x20]
fmul dword [esp + 0x24]
fld dword [esp + 0x1c]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x10]
faddp st(1)
fmul dword [edi + 0x10]
test bl, 2
je 0x446e01
test dl, dl
fld dword [ecx - 4]
mov eax, dword [esi]
fsub dword [eax + 0xc]
fstp dword [esp + 0x14]
fld dword [ecx]
fsub dword [eax + 0x10]
fstp dword [esp + 0x1c]
fld dword [ecx + 4]
fsub dword [eax + 0x14]
fstp dword [esp + 0x20]
je 0x446dab
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fdiv dword [edi + 0x14]
fmul dword [0x474048]
fsubr dword [0x47611c]
fstp dword [esp + 0x14]
fld dword [0x47611c]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x446d91
fld dword [0x476670]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x446d9e
fld dword [esp + 0x14]
fmul dword [edi + 0x10]
fmulp st(1)
jmp 0x446e01
fld dword [0x47611c]
fmul dword [edi + 0x10]
fmulp st(1)
jmp 0x446e01
fld dword [0x476670]
fmul dword [edi + 0x10]
fmulp st(1)
jmp 0x446e01
fstp st(0)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fdiv dword [edi + 0x14]
fmul dword [0x474048]
fsubr dword [0x47611c]
fld dword [0x47611c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x446e34
fld dword [0x476670]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x446dfe
fstp st(0)
fld dword [0x476670]
fmul dword [edi + 0x10]
cmp bl, 1
jne 0x446e23
fstp st(0)
fld dword [esp + 0x24]
fmul dword [ecx + 4]
fld dword [esp + 0x10]
fmul dword [ecx - 4]
faddp st(1)
fld dword [esp + 0x28]
fmul dword [ecx]
faddp st(1)
fmul dword [edi + 0x10]
fcom dword [0x476670]
fnstsw ax
test ah, 0x41
jne 0x446e3e
faddp st(1)
jmp 0x446e52
fstp st(0)
fld dword [0x47611c]
jmp 0x446dfe
mov eax, dword [esp + 0x11c]
mov dl, byte [eax + 0x51]
test dl, dl
je 0x446e50
fsubp st(1)
jmp 0x446e52
fstp st(0)
mov eax, dword [0x4916dc]
inc ebp
add ecx, 0xc
cmp ebp, eax
jb 0x446c60
mov ecx, dword [esi + 0x18]
test byte [ecx + 0x4c], 4
je 0x446e90
mov edx, dword [esi + 8]
fld dword [edx + 0x14]
mov eax, dword [esi + 4]
fadd dword [eax + 0x14]
mov edx, dword [esi]
fadd dword [edx + 0x14]
fld dword [ecx + 0x28]
fmul dword [0x4799f8]
fdivp st(1)
fsubr dword [0x47611c]
faddp st(1)
fstp dword [esi + 0x70]
jmp 0x446e9c
mov dword [esi + 0x70], 0
test byte [ecx + 0x4d], 2
je 0x446fa8
mov eax, dword [esi]
fld dword [eax + 0x24]
fmul dword [0x4799f4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x90]
mov ecx, dword [esp + 0x90]
mov edx, dword [esi]
add ecx, 0x8000
mov dword [esi + 0x58], ecx
fld dword [edx + 0x28]
fmul dword [0x4799f4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x8c]
mov edi, dword [esp + 0x8c]
mov ecx, dword [esi + 4]
mov eax, 0x8000
sub eax, edi
mov dword [esi + 0x64], eax
fld dword [ecx + 0x24]
fmul dword [0x4799f4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x88]
mov edx, dword [esp + 0x88]
mov eax, dword [esi + 4]
add edx, 0x8000
mov dword [esi + 0x5c], edx
fld dword [eax + 0x28]
fmul dword [0x4799f4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x94]
mov edx, dword [esp + 0x94]
mov ecx, 0x8000
sub ecx, edx
mov edx, dword [esi + 8]
mov dword [esi + 0x68], ecx
fld dword [edx + 0x24]
fmul dword [0x4799f4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x80]
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 8]
add eax, 0x8000
mov dword [esi + 0x60], eax
fld dword [ecx + 0x28]
fmul dword [0x4799f4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x84]
mov eax, dword [esp + 0x84]
mov edx, 0x8000
sub edx, eax
mov dword [esi + 0x6c], edx
mov eax, dword [esi + 0x18]
test byte [eax + 0x4c], 0x18
je 0x447253
lea ecx, [esi + 0x78]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], 3
mov eax, dword [esi + 0x18]
test byte [eax + 0x4c], 8
mov edx, dword [esp + 0x24]
fld dword [edx + 0xc]
je 0x4471f4
mov eax, dword [0x4916dc]
test eax, eax
mov dword [esp + 0x28], 0
jbe 0x4471f4
mov eax, dword [esp + 0x34]
mov ecx, edx
mov edx, dword [esp + 0x28]
lea ebp, [eax + ecx]
mov ecx, dword [0x491664]
add ecx, 4
jmp 0x447010
mov eax, dword [0x49167c]
fld dword [0x476670]
mov edi, dword [eax + edx*4]
mov bl, byte [edi]
and bl, 4
je 0x447096
mov edx, dword [esi + ebp]
fstp st(0)
fld dword [ecx - 4]
fsub dword [edx + 0xc]
fstp dword [esp + 0x10]
fld dword [ecx]
fsub dword [edx + 0x10]
fld dword [ecx + 4]
fsub dword [edx + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fcom qword [0x4799e0]
fnstsw ax
test ah, 0x41
jne 0x44707a
fsqrt
fdivr dword [0x47611c]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
fld st(0)
fmulp st(3)
fmulp st(1)
jmp 0x44707c
fstp st(0)
fmul dword [edx + 0x2c]
fxch st(1)
fmul dword [edx + 0x28]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [edx + 0x24]
mov edx, dword [esp + 0x28]
faddp st(1)
fmul dword [edi + 0x10]
mov al, byte [edi]
test al, 2
mov byte [esp + 0x2f], al
je 0x44718c
test bl, bl
fld dword [ecx - 4]
mov eax, dword [esi + ebp]
fsub dword [eax + 0xc]
fstp dword [esp + 0x10]
fld dword [ecx]
fsub dword [eax + 0x10]
fld dword [ecx + 4]
fsub dword [eax + 0x14]
je 0x447132
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fdiv dword [edi + 0x14]
fmul dword [0x474048]
fsubr dword [0x47611c]
fstp dword [esp + 0x10]
fstp st(0)
fstp st(0)
fld dword [0x47611c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x447118
fld dword [0x476670]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x447125
fld dword [esp + 0x10]
fmul dword [edi + 0x10]
fmulp st(1)
jmp 0x44718c
fld dword [0x47611c]
fmul dword [edi + 0x10]
fmulp st(1)
jmp 0x44718c
fld dword [0x476670]
fmul dword [edi + 0x10]
fmulp st(1)
jmp 0x44718c
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fdiv dword [edi + 0x14]
fmul dword [0x474048]
fsubr dword [0x47611c]
fld dword [0x47611c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4471c1
fld dword [0x476670]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x447189
fstp st(0)
fld dword [0x476670]
fmul dword [edi + 0x10]
cmp byte [esp + 0x2f], 1
jne 0x4471b0
mov eax, dword [esi + ebp]
fstp st(0)
fld dword [eax + 0x2c]
fmul dword [ecx + 4]
fld dword [eax + 0x24]
fmul dword [ecx - 4]
faddp st(1)
fld dword [eax + 0x28]
fmul dword [ecx]
faddp st(1)
fmul dword [edi + 0x10]
fcom qword [0x477810]
fnstsw ax
test ah, 0x41
jne 0x4471cb
faddp st(1)
jmp 0x4471df
fstp st(0)
fld dword [0x47611c]
jmp 0x447189
mov eax, dword [esp + 0x11c]
mov bl, byte [eax + 0x51]
test bl, bl
je 0x4471dd
fsubp st(1)
jmp 0x4471df
fstp st(0)
mov eax, dword [0x4916dc]
inc edx
add ecx, 0xc
cmp edx, eax
mov dword [esp + 0x28], edx
jb 0x447010
mov eax, dword [esi + 0x18]
test byte [eax + 0x4c], 0x10
je 0x447212
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx - 0x78]
fld dword [edx + 0x14]
fdiv dword [eax + 0x28]
fsubr dword [0x47611c]
faddp st(1)
fcom dword [0x476670]
fnstsw ax
test ah, 5
jp 0x447227
fstp st(0)
fld dword [0x476670]
fcom qword [0x472b40]
fnstsw ax
test ah, 0x41
jne 0x44723c
fstp st(0)
fld dword [0x47611c]
mov eax, dword [esp + 0x24]
fstp dword [eax]
add eax, 4
mov dword [esp + 0x24], eax
dec dword [esp + 0x18]
jne 0x446fc4
mov eax, dword [esi + 8]
fld dword [eax + 0x14]
mov ecx, dword [esi + 4]
fadd dword [ecx + 0x14]
mov edx, dword [esi]
mov eax, dword [esp + 0x38]
mov ecx, dword [0x49166c]
fadd dword [edx + 0x14]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x11c]
mov dword [eax + ecx + 4], esi
fstp dword [eax + ecx]
add eax, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [0x4975c4]
mov edi, dword [esp + 0x38]
inc edx
inc eax
mov dword [esp + 0x30], edx
mov dword [0x4975c4], eax
mov ebx, edx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
sub ecx, 0x90
add esi, 0x90
dec eax
mov dword [0x491668], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
jne 0x446b61
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x108
ret