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

Disassembly:
sub esp, 0x194
mov eax, dword [0x562940]
xor eax, dword [esp + 0x194]
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x1a0]
fld dword [eax]
push ebx
fsub dword [ecx]
mov ebx, dword [esp + 0x19c]
xor edx, edx
push esi
fstp dword [esp + 0x3c]
mov dword [esp + 0x38], 2
fld dword [eax + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x40]
fld dword [eax + 8]
movzx eax, byte [ebx + 0x50]
fsub dword [ecx + 8]
mov ecx, dword [ebx + 4]
shl eax, 6
lea ecx, [eax + ecx + 0x30]
fst dword [esp + 0x44]
mov dword [edi + 4], edx
fmul dword [esp + 0x44]
mov byte [edi + 0x18], dl
fld dword [esp + 0x40]
mov byte [edi + 0x19], dl
fmul dword [esp + 0x40]
mov word [edi + 0x14], dx
mov word [edi + 0x16], dx
mov dword [edi + 0x10], edx
faddp st(1)
mov dword [edi + 0xc], edx
fld dword [esp + 0x3c]
mov dword [edi + 8], edx
fmul dword [esp + 0x3c]
mov ax, word [ebx + 0x14]
cmp ax, dx
faddp st(1)
fdivr dword [0x55a4a8]
fstp dword [esp + 0x5c]
je 0x477158
mov esi, dword [0x8d7bd8]
movzx eax, ax
lea eax, [esi + eax*8 + 4]
jmp 0x47715a
xor eax, eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov al, byte [ebx + 0x16]
test al, al
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x60], edx
jbe 0x477622
lea edx, [ebx + 0x48]
lea eax, [ebx + 0x18]
push ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [edx]
mov eax, dword [eax]
movsx ebp, word [eax]
xor esi, esi
test ebp, ebp
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x18], esi
jle 0x4776d9
add eax, 2
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], eax
jmp 0x4771e0
mov edx, dword [esp + 0x80]
lea esp, [esp]
mov eax, dword [edx + 0x14]
movzx bp, byte [eax + esi]
mov ebx, dword [esp + 0x1b0]
movzx eax, bp
movzx ebx, byte [eax + ebx]
mov eax, dword [esp + 0x38]
movzx eax, byte [eax]
dec eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
jne 0x477226
mov eax, dword [esp + 0x38]
add eax, 2
cmp ebx, 1
mov dword [esp + 0x38], eax
jne 0x477279
movzx eax, byte [eax - 1]
mov bp, word [esp + eax*2 + 0x9a]
jmp 0x477265
cmp ebx, 1
jne 0x477279
movsx eax, word [edx + 4]
cmp esi, eax
jge 0x47724e
mov eax, dword [esp + 0x4c]
mov al, byte [eax]
cmp al, 0xff
je 0x47724a
movzx eax, al
mov bp, word [esp + eax*2 + 0x9c]
jmp 0x477265
xor ebp, ebp
jmp 0x477265
mov ebx, dword [edx]
sub ebx, eax
movzx eax, byte [ebx + esi + 4]
mov ebx, dword [esp + 0x20]
sub ebx, eax
mov bp, word [esp + ebx*2 + 0x9c]
mov ebx, dword [esp + 0x1b0]
movzx eax, bp
movzx eax, byte [eax + ebx]
mov dword [esp + 0x1c], eax
mov ebx, eax
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 8]
mov word [esp + eax*2 + 0x9c], bp
mov eax, dword [esp + 0x58]
fld dword [edx + eax + 0x24]
add edx, eax
fcomp dword [0x55a4ac]
fnstsw ax
test ah, 0x44
jnp 0x47769f
cmp dword [esp + 0x3c], ebx
ja 0x47769f
fld dword [edx + 0x18]
mov eax, dword [esp + 0x1a8]
fmul dword [ecx]
fld dword [edx + 0x20]
fmul dword [ecx + 0x20]
faddp st(1)
fld dword [ecx + 0x10]
fmul dword [edx + 0x1c]
faddp st(1)
fadd dword [ecx + 0x30]
fld dword [edx + 0x20]
fmul dword [ecx + 0x24]
fld dword [edx + 0x1c]
fmul dword [ecx + 0x14]
faddp st(1)
fld dword [edx + 0x18]
fmul dword [ecx + 4]
faddp st(1)
fadd dword [ecx + 0x34]
fstp dword [esp + 0x74]
fld dword [edx + 0x20]
fmul dword [ecx + 0x28]
fld dword [edx + 0x1c]
fmul dword [ecx + 0x18]
faddp st(1)
fld dword [edx + 0x18]
fmul dword [ecx + 8]
faddp st(1)
fadd dword [ecx + 0x38]
fstp dword [esp + 0x78]
fld dword [eax]
fsub st(1)
fstp dword [esp + 0x2c]
fld dword [eax + 4]
fsub dword [esp + 0x74]
fstp dword [esp + 0x30]
fld dword [eax + 8]
fsub dword [esp + 0x78]
fst dword [esp + 0x34]
fmul dword [esp + 0x48]
fld dword [esp + 0x30]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x40]
faddp st(1)
fmul dword [esp + 0x60]
fchs
fst dword [esp + 0xc]
fcomp dword [0x55a4a8]
fnstsw ax
test ah, 5
jp 0x4773aa
fstp st(0)
fld dword [esp + 0xc]
fcomp dword [0x55a4ac]
fnstsw ax
test ah, 0x41
jne 0x47738c
fld dword [esp + 0xc]
fmul dword [esp + 0x40]
fadd dword [esp + 0x2c]
fld dword [esp + 0xc]
fmul dword [esp + 0x44]
fadd dword [esp + 0x30]
fld dword [esp + 0xc]
fmul dword [esp + 0x48]
fadd dword [esp + 0x34]
jmp 0x4773c1
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
jmp 0x4773d7
mov eax, dword [esp + 0x1ac]
fsubr dword [eax]
fld dword [eax + 4]
fsub dword [esp + 0x74]
fld dword [eax + 8]
fsub dword [esp + 0x78]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [edx + 0x24]
fsub st(1)
fstp dword [esp + 0x68]
fstp st(0)
fld dword [esp + 0x68]
fcomp dword [0x55a4ac]
fnstsw ax
test ah, 0x41
jnp 0x47769f
cmp dword [esp + 0x3c], ebx
jne 0x47741c
fld dword [esp + 0x68]
fmul dword [esp + 0x60]
fsqrt
fld dword [esp + 0xc]
fsub st(1)
fcomp dword [edi]
fnstsw ax
fstp st(0)
test ah, 1
je 0x47769f
mov eax, dword [esp + 0x1a8]
fld dword [eax]
mov dword [esp + 0x14], 0
fsub dword [ecx + 0x30]
mov byte [esp + 0x13], 1
fld dword [eax + 4]
mov bl, 1
fsub dword [ecx + 0x34]
fld dword [eax + 8]
mov eax, dword [esp + 0x1ac]
fsub dword [ecx + 0x38]
fld st(2)
fmul dword [ecx]
fld st(2)
fmul dword [ecx + 4]
faddp st(1)
fld st(1)
fmul dword [ecx + 8]
faddp st(1)
fstp dword [esp + 0x84]
fld st(0)
fmul dword [ecx + 0x18]
fld st(2)
fmul dword [ecx + 0x14]
faddp st(1)
fld st(3)
fmul dword [ecx + 0x10]
faddp st(1)
fstp dword [esp + 0x88]
fmul dword [ecx + 0x28]
fxch st(1)
fmul dword [ecx + 0x24]
faddp st(1)
fxch st(1)
fmul dword [ecx + 0x20]
faddp st(1)
fstp dword [esp + 0x8c]
fld dword [eax]
fsub dword [ecx + 0x30]
fld dword [eax + 4]
fsub dword [ecx + 0x34]
fld dword [eax + 8]
mov eax, dword [edi]
fsub dword [ecx + 0x38]
mov dword [esp + 0x24], eax
fld st(2)
fmul dword [ecx]
fld st(2)
fmul dword [ecx + 4]
faddp st(1)
fld st(1)
fmul dword [ecx + 8]
faddp st(1)
fstp dword [esp + 0x90]
fld st(0)
fmul dword [ecx + 0x18]
fld st(2)
fmul dword [ecx + 0x14]
faddp st(1)
fld st(3)
fmul dword [ecx + 0x10]
faddp st(1)
fstp dword [esp + 0x94]
fmul dword [ecx + 0x28]
fxch st(1)
fmul dword [ecx + 0x24]
faddp st(1)
fxch st(1)
fmul dword [ecx + 0x20]
faddp st(1)
fstp dword [esp + 0x98]
fld dword [0x55a4e4]
lea ecx, [ecx]
xor esi, esi
fld dword [esp + esi*4 + 0x84]
fsub dword [edx + esi*4]
fmul st(1)
fstp dword [esp + 0xc]
fld dword [esp + esi*4 + 0x90]
fsub dword [edx + esi*4]
fmul st(1)
fld dword [esp + 0xc]
fcomp dword [0x55a4ac]
fnstsw ax
fcom dword [0x55a4ac]
test ah, 0x41
fnstsw ax
jne 0x477583
test ah, 0x41
je 0x477697
fsubr dword [esp + 0xc]
mov byte [esp + 0x13], 0
fld dword [esp + 0x14]
fmul st(1)
fcomp dword [esp + 0xc]
fnstsw ax
test ah, 5
jp 0x4775c0
fld dword [esp + 0xc]
fdiv st(1)
fstp dword [esp + 0x14]
fstp st(0)
fld dword [esp + 0x14]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x477699
fst dword [esp + 0x28]
mov dword [esp + 0x5c], esi
jmp 0x4775c2
test ah, 0x41
jne 0x4775c0
fsubr dword [esp + 0xc]
xor bl, bl
fld dword [esp + 0x24]
fmul st(1)
fcomp dword [esp + 0xc]
fnstsw ax
test ah, 5
jp 0x4775c0
fld dword [esp + 0xc]
fdiv st(1)
fstp dword [esp + 0x24]
fstp st(0)
fld dword [esp + 0x14]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x477699
jmp 0x4775c2
fstp st(0)
inc esi
cmp esi, 3
jl 0x477502
fcomp dword [0x55a4a8]
fnstsw ax
test ah, 0x44
jnp 0x4775e7
fld dword [0x55a4a8]
add edx, 0xc
jmp 0x477500
mov al, byte [esp + 0x13]
test al, al
je 0x47763d
test bl, bl
mov byte [edi + 0x18], 1
je 0x47769b
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
xor eax, eax
mov byte [edi + 0x19], 1
mov dword [edi], eax
mov cx, word [ecx + edx*2 + 2]
mov word [edi + 0x14], cx
mov word [edi + 0x16], bp
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
pop ebp
mov ecx, dword [esp + 0x198]
xor ecx, dword [esp + 0x19c]
pop esi
pop ebx
add esp, 0x194
jmp fcn.00523319
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x3c], eax
jne 0x477656
fld dword [esp + 0x14]
fcomp dword [edi]
fnstsw ax
test ah, 1
je 0x47769b
jmp 0x47765a
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x14]
fld dword [esp + 0x28]
mov eax, dword [esp + 0x54]
mov dword [edi], edx
mov dx, word [eax]
mov eax, dword [esp + 0x5c]
shl eax, 4
add eax, ecx
mov word [edi + 0x14], dx
mov word [edi + 0x16], bp
fmul dword [eax]
fstp dword [edi + 8]
fld dword [esp + 0x28]
fmul dword [eax + 4]
fstp dword [edi + 0xc]
fld dword [esp + 0x28]
fmul dword [eax + 8]
fstp dword [edi + 0x10]
jmp 0x47769b
fstp st(0)
fstp st(0)
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
add eax, 0x28
inc esi
add ebp, 2
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
add ecx, 0x40
inc edx
cmp esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x20], edx
jl 0x4771d2
mov ebx, dword [esp + 0x1a4]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x4c]
add edx, 4
mov dword [esp + 0x50], edx
movzx edx, byte [ebx + 0x16]
inc eax
inc ebp
cmp eax, edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], ebp
jl 0x477193
jmp 0x477621